Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [ -z $FOO ] seems broken in beta13
- X-seq: zsh-workers 1306
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: olsenc@xxxxxxxxxxxxxxxx (Clint Olsen)
- Subject: Re: [ -z $FOO ] seems broken in beta13
- Date: Mon, 10 Jun 1996 18:03:37 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199606101636.AA267124560@xxxxxxxxxxxxxxxxxxxxx> from "Clint Olsen" at Jun 10, 96 09:35:59 am
>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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author