From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id DAA21387 for ; Tue, 11 Jun 1996 03:16:54 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA25147; Mon, 10 Jun 1996 13:05:22 -0400 (EDT) Resent-Date: Mon, 10 Jun 1996 13:05:22 -0400 (EDT) From: Zefram Message-Id: <7884.199606101703@stone.dcs.warwick.ac.uk> Subject: Re: [ -z $FOO ] seems broken in beta13 To: olsenc@ichips.intel.com (Clint Olsen) Date: Mon, 10 Jun 1996 18:03:37 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199606101636.AA267124560@dtthp106.jf.intel.com> from "Clint Olsen" at Jun 10, 96 09:35:59 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]7638.55 X-US-Congress: Moronic fuckers MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"D1mbE1.0.q86.HN5ln"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1306 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >I use [ -z $TERM ] to check for terminal settings, and since we revved up >from 2.5, I'm now forced to use $+TERM. > >Now I get "argument expected". Is this correct? Yes. If $TERM is empty, then $TERM will be removed from the command line completely, leaving `[ -z ]`, which is a syntax error. If you use "$TERM" (note the quotes), then the result will be `[ -z "" ]`, which is legal. -zefram