zsh-workers
 help / color / mirror / code / Atom feed
* Parameter substitution bug
@ 1999-04-29 16:07 Peter Stephenson
  1999-04-29 17:38 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Stephenson @ 1999-04-29 16:07 UTC (permalink / raw)
  To: Zsh hackers list

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@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-04-30 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-29 16:07 Parameter substitution bug Peter Stephenson
1999-04-29 17:38 ` Bart Schaefer
1999-04-30  8:14   ` PATCH: 3.1.5++/3.0.6 " Peter Stephenson
1999-04-30  9:53     ` Bart Schaefer
1999-04-30  9:58     ` Bart Schaefer
1999-04-30  9:38       ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).