Date: Wed, 3 Apr 2002 11:21:11 -0600 From: Glenn Johnson <gjohnson@srrc.ars.usda.gov> To: questions@freebsd.org Subject: why does this test condition not work? Message-ID: <20020403172111.GA88600@node1.cluster.srrc.usda.gov>
next in thread | raw e-mail | index | archive | help
I am writing a script am am trying to prompt for input and make sure all
of the values are entered. I have the following test condition in my
script but when I run it I get:
[: -z: unexpected operator
==============
while [ -z $tor1a -o -z $tor1b -o -z $tor1c -o -z $tor1d ]
do
read -p "Enter the atom numbers of the first torsion: " tor1a
tor1b tor1c tor1d
done
==============
What do I have wrong?
Thanks.
--
Glenn Johnson
USDA, ARS, SRRC Phone: (504) 286-4252
New Orleans, LA 70124 e-mail: gjohnson@srrc.ars.usda.gov
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020403172111.GA88600>
