From owner-freebsd-questions Wed Apr 3 9:21:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id 68B4537B422 for ; Wed, 3 Apr 2002 09:21:14 -0800 (PST) Received: from node1.cluster.srrc.usda.gov (localhost [127.0.0.1]) by symbion.srrc.usda.gov (8.12.2/8.12.2) with ESMTP id g33HLCpX088627 for ; Wed, 3 Apr 2002 11:21:12 -0600 (CST) (envelope-from glenn@node1.cluster.srrc.usda.gov) Received: (from glenn@localhost) by node1.cluster.srrc.usda.gov (8.12.2/8.12.2/Submit) id g33HLBRU088626 for questions@freebsd.org; Wed, 3 Apr 2002 11:21:11 -0600 (CST) From: Glenn Johnson Date: Wed, 3 Apr 2002 11:21:11 -0600 To: questions@freebsd.org Subject: why does this test condition not work? Message-ID: <20020403172111.GA88600@node1.cluster.srrc.usda.gov> Mail-Followup-To: glenn@FreeBSD.ORG, questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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