Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 1996 19:20:47 +0100
From:      kuku@gilberto.physik.rwth-aachen.de (Christoph P. Kukulies)
To:        tcg@ime.net (Gary Chrysler)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sh shell script help needed!
Message-ID:  <199609291820.TAA01043@gilberto.physik.rwth-aachen.de>
In-Reply-To: <199609291742.NAA26826@ime.net>; from Gary Chrysler on Sep 29, 1996 13:41:28 -0400
References:  <199609291742.NAA26826@ime.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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: <http://docs.FreeBSD.org/cgi/mid.cgi?199609291820.TAA01043>