From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16356 invoked from network); 1 Sep 1998 09:26:15 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 1 Sep 1998 09:26:15 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id FAA08357; Tue, 1 Sep 1998 05:19:16 -0400 (EDT) Resent-Date: Tue, 1 Sep 1998 05:16:17 -0400 (EDT) Message-Id: <199809010919.KAA04668@diamond.tao.co.uk> Subject: Re: globbing and parameter expansion in 3.0.5 To: monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU (Stefan Monnier) Date: Tue, 1 Sep 1998 10:19:10 +0100 (BST) From: "Zefram" Cc: zsh-users@math.gatech.edu In-Reply-To: <5l3eadgn7p.fsf@tequila.systemsz.cs.yale.edu> from "Stefan Monnier" at Aug 31, 98 11:55:38 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"HUTnl1.0.o12.Xjxwr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1779 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Stefan Monnier wrote: >/-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' >* % zsh -c 'toto="*"; echo $toto' * % zsh -c 'toto="*"; echo $~toto' bin data etc export man tmp usr % ARGV0=sh zsh -c 'toto="*"; echo $toto' bin data etc export man tmp usr % ARGV0=bash zsh -c 'toto="*"; echo $toto' bin data etc export man tmp usr >Which one is "correct" ? Both. See GLOB_SUBST in zshoptions(1). -zefram