Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [ -z $FOO ] seems broken in beta13
- X-seq: zsh-workers 1307
- From: Hrvoje Niksic <hniksic@xxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (ZSH Workers Mailing List)
- Subject: Re: [ -z $FOO ] seems broken in beta13
- Date: 10 Jun 1996 19:18:20 +0200
- In-reply-to: Zefram's message of Mon, 10 Jun 1996 18:03:37 +0100 (BST)
- References: <7884.199606101703@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: hniksic@xxxxxxxxxxxxxx
Zefram (A.Main@xxxxxxxxxxxxxxxxx) wrote:
>
> >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.
I thought you got this behaviour only by turning on shwordsplit?
--
hniksic@xxxxxxx | Student of electrical engineering
hniksic@xxxxxxxxxxxxx | University of Zagreb, Croatia
------------------------------------------------------------------
`VI' - An editor used by those heretics that don't subscribe to
the Emacs religion.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author