From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23650 invoked from network); 31 Aug 1998 16:02:23 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 31 Aug 1998 16:02:23 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id LAA20000; Mon, 31 Aug 1998 11:56:36 -0400 (EDT) Resent-Date: Mon, 31 Aug 1998 11:52:52 -0400 (EDT) To: zsh-users@math.gatech.edu Sender: monnier@TEQUILA.SYSTEMSZ.CS.YALE.EDU From: Stefan Monnier Newsgroups: lists.zsh.users Subject: globbing and parameter expansion in 3.0.5 Date: 31 Aug 1998 11:55:38 -0400 Message-ID: <5l3eadgn7p.fsf@tequila.systemsz.cs.yale.edu> X-Newsreader: Gnus v5.5/Emacs 20.2 Path: tequila.systemsz.cs.yale.edu NNTP-Posting-Host: tequila.systemsz.cs.yale.edu Resent-Message-ID: <"EOAxa.0.ls4.JRiwr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1778 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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