Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: beta 19 cannot run this script
- X-seq: zsh-workers 1263
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Carlos Carvalho <carlos@xxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: beta 19 cannot run this script
- Date: Wed, 5 Jun 1996 09:03:41 -0700
- In-reply-to: Carlos Carvalho <carlos@xxxxxxxxxxxxxxxxxxxxx> "beta 19 cannot run this script" (Jun 5, 11:59am)
- References: <m0uRK3H-00001zC@xxxxxxxxxxxxxxxxxxxxx>
- Reply-to: schaefer@xxxxxxx
On Jun 5, 11:59am, Carlos Carvalho wrote:
} Subject: beta 19 cannot run this script
}
} I had to link /bin/sh to zsh in order to make automatic tex font
} generation work. However, zsh (called as sh), doesn't run this script:
This seems to be the problem:
======
bash:
$ [ ! ] && echo OK
OK
======
True Bourne shell:
$ [ ! ] && echo OK
[: argument expected
======
zsh:
% [ ! ] && echo OK
[: argument expected
======
So I think zsh is OK in this case.
Here's the culprit in the script:
if [ ! $APS_BASEDIR ]; then
This isn't a very portable script in the first place. A better test for
a variable being unset would be:
if [ -z "$APS_BASEDIR" ]; then
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author