From owner-freebsd-questions Sun Sep 29 12:21:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA14788 for questions-outgoing; Sun, 29 Sep 1996 12:21:09 -0700 (PDT) Received: from ime.net (ime.net [204.97.248.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA14761 for ; Sun, 29 Sep 1996 12:21:07 -0700 (PDT) Received: from kimiko.cguy.com (buxton-13.ime.net [206.231.148.142]) by ime.net (8.7.4/8.6.12) with ESMTP id PAA03371; Sun, 29 Sep 1996 15:20:42 -0400 (EDT) Message-Id: <199609291920.PAA03371@ime.net> From: "Gary Chrysler" To: "Christoph P. Kukulies" Cc: Subject: Re: sh shell script help needed! Date: Sun, 29 Sep 1996 15:20:26 -0400 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Geez, I knew it was something simple. The missing `;` was a typo. The lack of #!/bin/sh wasn't.. :( I do usually do include them in actual scripts, except in my test scripts, I now see the errors of my ways, And the potential hazzards of them! I'll be sure to include them in all scripts! Thanks! -Enjoy Gary ~~~~~~~~~~~~~~~~ Improve America's Knowledge... Share yours The Borg... Where minds meet (207) 929-3848 ---------- > From: Christoph P. Kukulies > To: Gary Chrysler > Cc: freebsd-questions@freebsd.org > Subject: Re: sh shell script help needed! > Date: Sunday, September 29, 1996 2:20 PM > > Gary Chrysler writes: > > > > What am I doing wrong here?? (Yes, I know it's me :) > > Such a simple thing and I can't get it to work! > > > > # test script > > # based on /etc/rc usage of if > > if [ $1 = yes ] then > ^ missing ; > > echo Yes > > fi > > > > ramillia {1377} ./test yes > > if: Expression Syntax > > But since you are using the csh you should put a > > #!/bin/sh > > as the first line in your script since it is a Bourne shell script. > > > ramillia {1378} > > > > Such an easy thing... ... I've tried every variation I can think of while > > crusing through stuff in /etc > > > > Thanks. > > > > -Enjoy > > Gary > > ~~~~~~~~~~~~~~~~ > > Improve America's Knowledge... Share yours > > The Borg... Where minds meet > > (207) 929-3848 > > > > -- > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de