From owner-freebsd-questions Sat Feb 23 17:34:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ra.sigterm.com (sangui.lnk.telstra.net [139.130.16.74]) by hub.freebsd.org (Postfix) with ESMTP id CE44A37B405 for ; Sat, 23 Feb 2002 17:34:15 -0800 (PST) Received: from osiris.sigterm.com ([203.47.187.211]) by ra.sigterm.com with esmtp (Exim 3.34 #1) id 16enYC-0000Dt-00; Sun, 24 Feb 2002 12:34:04 +1100 Subject: Re: Linux shell scripts From: Stuart Tanner To: Jeff Jeter Cc: FreeBSD Questions In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 24 Feb 2002 13:34:44 +1200 Message-Id: <1014514485.57377.149.camel@osiris.sigterm.com> Mime-Version: 1.0 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 On Sun, 2002-02-24 at 13:17, Jeff Jeter wrote: > I have several apps that use shell schripts. THese apps are designed for linux. when i run these scripts with sh i get odd errors such as Syntax error: unexpected ")" and > function: not found > Syntax error: unexpected "}". > > I ran the one of them w/ the unexpected "}" w/ csh, and tcsh got this error. > CONFARGS=--enable-opengl: Connand not found > prefix=/usr/local: command not found > prefix: undefined variable > > How do i geth these working. I can post the (t)csh output from the other script if needed. I just re-read your e-mail and it clicked that you were trying different shells with the same script. The first line of the script will be the shell that the script should be run with. It will be something like #!/bin/sh or #!/bin/csh #!/usr/local/bin/bash or whatever shell it was designed for. This is the shell you need to run the script. -- Stuart Tanner Dave Mack: "Your stupidity, Allen, is simply not up to par." Allen Gwinn: "Yours is." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message