From owner-freebsd-questions Sun Sep 29 11:14:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA23751 for questions-outgoing; Sun, 29 Sep 1996 11:14:20 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA23699 for ; Sun, 29 Sep 1996 11:14:15 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id TAA12131; Sun, 29 Sep 1996 19:14:33 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id TAA01043; Sun, 29 Sep 1996 19:20:48 +0100 Message-Id: <199609291820.TAA01043@gilberto.physik.rwth-aachen.de> 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! In-Reply-To: <199609291742.NAA26826@ime.net>; from Gary Chrysler on Sep 29, 1996 13:41:28 -0400 References: <199609291742.NAA26826@ime.net> X-Mailer: Mutt 0.45 Mime-Version: 1.0 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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