Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
globbing and parameter expansion in 3.0.5
- X-seq: zsh-users 1778
- From: Stefan Monnier <monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: globbing and parameter expansion in 3.0.5
- Date: 31 Aug 1998 11:55:38 -0400
- Sender: monnier@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
There is a discrepency between bash and zsh when it comes to mixing parameter
expansion and globbing:
/-0% bash -c 'toto="*"; echo $toto'
System.map amd bin boot cdrom compressed core depots dev dos etc floppy home homes inittab kernel lib lost+found misc mnt net nfs proc root rpm sbin scratch softs tmp usr var windows wine
/-0% zsh -c 'toto="*"; echo $toto'
*
/-0%
To me, bash behavior looks more consistent (since 'echo $foo/*' does the
parameter expansion before globbing), but compctl-examples seem to indicate
that at least the guy who wrote the man_glob function already knew about this
pecularity.
Which one is "correct" ?
Stefan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author