From: Stefan Monnier <monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU>
To: zsh-users@math.gatech.edu
Subject: globbing and parameter expansion in 3.0.5
Date: 31 Aug 1998 11:55:38 -0400 [thread overview]
Message-ID: <5l3eadgn7p.fsf@tequila.systemsz.cs.yale.edu> (raw)
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
next reply other threads:[~1998-08-31 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-31 15:55 Stefan Monnier [this message]
1998-09-01 9:19 ` Zefram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5l3eadgn7p.fsf@tequila.systemsz.cs.yale.edu \
--to=monnier+lists/zsh/users/news/@tequila.systemsz.cs.yale.edu \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).