Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Re: is this really correct
- X-seq: zsh-workers 1314
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: gene@xxxxxxxx
- Subject: Re: Re: is this really correct
- Date: Mon, 10 Jun 1996 20:33:20 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx (Zsh workers list)
- In-reply-to: <9606101807.AA03486@xxxxxxxx> from "gene@xxxxxxxx" at "Jun 10, 96 02:07:15 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
> What is the "preferred" way of testing strings that may be arbitrarily
> input then given the above ? I mean one does not know what 'a' is until
> you do a test on it right ?
As I said I'll modify [ ... ] according to POSIX which will fix this
problem (maybe it was not clear that test and [ are the same). But in zsh
one can use
% a="-s"; if [[ "$a" = "-s" ]] then echo "yeh" ; fi
which should work with all zsh versions.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author