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

globbing and parameter expansion in 3.0.5



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