Zsh Mailing List Archive
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author
Parameter Expansion
X-seq
: zsh-users 30302
From
: Vin Shelton <ethersoft@xxxxxxxxx>
To
: Zsh-Users List <zsh-users@xxxxxxx>
Subject
: Parameter Expansion
Date
: Tue, 15 Jul 2025 10:44:53 -0400
Archived-at
: <https://zsh.org/users/30302>
List-id
: <zsh-users.zsh.org>
I don't understand the order of parameter expansion. Consider the following example:
zsh -f
export HOME=/home/acs
smaug% export SCMROOT=/home/acs/scmroot
smaug% echo ${SCMROOT:s-$HOME
/
--}
This yields /home/acs/scmroot", but I expected "scmroot".
TIA,
Vin Shelton
Follow-Ups
:
Re: Parameter Expansion
From:
Eric Cook
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author