Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 1996 15:20:26 -0400
From:      "Gary Chrysler" <tcg@ime.net>
To:        "Christoph P. Kukulies" <kuku@gilberto.physik.rwth-aachen.de>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: sh shell script help needed!
Message-ID:  <199609291920.PAA03371@ime.net>

next in thread | raw e-mail | index | archive | help

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 <kuku@gilberto.physik.rwth-aachen.de>
> To: Gary Chrysler <tcg@ime.net>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609291920.PAA03371>