From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1720 invoked from network); 3 Dec 1996 17:15:44 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 3 Dec 1996 17:15:44 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA11452; Tue, 3 Dec 1996 11:57:11 -0500 (EST) Resent-Date: Tue, 3 Dec 1996 11:57:11 -0500 (EST) From: Zoltan Hidvegi Message-Id: <199612031657.RAA25108@bolyai.cs.elte.hu> Subject: Re: bug with empty path In-Reply-To: <199611251433.PAA22472@hydra.ifh.de> from Peter Stephenson at "Nov 25, 96 03:33:28 pm" To: pws@ifh.de (Peter Stephenson) Date: Tue, 3 Dec 1996 17:57:58 +0100 (MET) Cc: zsh-workers@math.gatech.edu Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL27 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"HLOLe1.0.so2.dl5fo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2530 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Peter Stephenson wrote: > The lines: > path=() > and > PATH= > have different effects: the first produces an empty path array, the > second a path with one blank element. This turns up in the following: I do not think it is a bug. Of course other shells couldn't set an empty path but zsh is better than that. The path is really an array and the PATH scalar is just a representation which has this inefficiency. One may want to use a really empty path sometimes which is best achieved with path=(). Zoltan