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

Parameter substitution bug



Can anybody explain this?

% cat tst
print $HOME/bin
print ~/bin
fdir='~/bin'
print ${~fdir}
setopt globsubst
print $fdir
% zsh -f ./tst
/home/user2/pws/bin
/home/user2/pws/bin
~/bin
~/bin

Why don't the last two give the same as the first two?  There's no rule
that says `parameter expansion doesn't work properly in non-interactive
shells', is there?  But it's there in 3.0.6-pre-2 as well, so maybe there's
something I'm just failing to understand.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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