Parameter Expansion

Vin Shelton <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <CACeGjnWw4=9Hm9k0iXSoLDRYCfVxEz=uYrQ6MyBouRbFBbf7yw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.