From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13225 invoked from network); 14 Aug 2003 01:29:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Aug 2003 01:29:21 -0000 Received: (qmail 2366 invoked by alias); 14 Aug 2003 01:29:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6468 Received: (qmail 2356 invoked from network); 14 Aug 2003 01:29:10 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Aug 2003 01:29:10 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.107] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Aug 2003 1:29:6 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h7E1T5D02355 for zsh-users@sunsite.dk; Wed, 13 Aug 2003 18:29:05 -0700 From: Bart Schaefer Message-Id: <1030814012905.ZM2354@candle.brasslantern.com> Date: Thu, 14 Aug 2003 01:29:05 +0000 In-Reply-To: <20030813230848.GA670@s.chello.no> Comments: In reply to Haakon Riiser "Re: [[ ... ]], [ ... ], bash, zsh" (Aug 14, 1:08am) References: <20030813221633.GA1343@s.chello.no> <87ptj9ch5b.fsf@lucien.dreaming> <20030813230848.GA670@s.chello.no> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: [[ ... ]], [ ... ], bash, zsh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 14, 1:08am, Haakon Riiser wrote: } Subject: Re: [[ ... ]], [ ... ], bash, zsh } } if [[ $INITIALIZED ]]; then } } if [[ -n $INITIALIZED ]]; then } } so I just wanted to know why it was decided that -n should not } be optional. It's not the case that someone decided that -n should not be optional. It is the case that someone decided that arbitrary non-empty strings should not be considered equivalent to the value "true", and that the empty string should not be considered equivalent to "false". The zsh [[ ]] is based on ksh, not on bash: $ [[ $INITIALIZED ]] ksh: syntax error: `$INITIALIZED' missing expression operator So "someone" is probably David Korn.