Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Parameter Expansion



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



Messages sorted by: Reverse Date, Date, Thread, Author