From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 20:34:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03D4116A4CE for ; Sun, 12 Dec 2004 20:34:06 +0000 (GMT) Received: from smtp3.global.net.uk (smtp3.global.net.uk [80.189.92.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30EDE43D1F for ; Sun, 12 Dec 2004 20:34:05 +0000 (GMT) (envelope-from abryan@tsimshatsui.co.uk) Received: from 242.228.adsl.brightview.com ([80.189.228.242] helo=[127.0.0.1]) by smtp3.global.net.uk with esmtp (Exim 4.24; FreeBSD) id 1CdaPr-000Jju-Vt for freebsd-questions@freebsd.org; Sun, 12 Dec 2004 20:34:04 +0000 Message-ID: <41BCAB3B.1020809@tsimshatsui.co.uk> Date: Sun, 12 Dec 2004 20:34:03 +0000 From: Alistair Bryan User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Authenticated-Sender: Subject: running scripts on FreeBSD 5.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 20:34:06 -0000 Hi there, I've recently installed v5.3 and am completely new to FreeBSD. I downloaded and a driver for my adsl modem and, following the instructions which came with the software, compiled the program. In order to run it I tried to run one of the supplied scripts and got the following error: bash-2.05b# ./eci-doctor.sh [: unexpected operator You are using linux kernel version 5.3-RELEASE ./eci-doctor.sh: 48: Syntax error: "(" unexpected Line 48 has the line function fatal () { I created a directory whch I called adsl andcompiled the program in there. What am I doing wrong? Do I need to include this directory in the path? T.I.A. Ali