From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 02:27:59 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73FA91065670 for ; Tue, 1 Jun 2010 02:27:59 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (b4.ebbed1.client.atlantech.net [209.190.235.180]) by mx1.freebsd.org (Postfix) with ESMTP id 184888FC15 for ; Tue, 1 Jun 2010 02:27:58 +0000 (UTC) Received: from [192.168.1.11] ([192.168.1.11]) by mail.monochrome.org (8.14.3/8.14.3) with ESMTP id o512Rodk039718; Mon, 31 May 2010 22:27:50 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Mon, 31 May 2010 22:27:50 -0400 (EDT) From: Chris Hill To: Aiza In-Reply-To: <4C046937.2030905@comclark.com> Message-ID: References: <4C046937.2030905@comclark.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "questions@freebsd.org" Subject: Re: unexpected operator .sh error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 02:27:59 -0000 On Tue, 1 Jun 2010, Aiza wrote: > Added some code to a .sh script. > When I run the script works but issues this message > [: =: unexpected operator > > No line number telling where to look. > I am not ever sure its talking about. > > IS [: whats wrong or =: I'd guess that what you added includes something like if [ x=y ] ... The open-square-bracket, [, is another name for test. IIRC the equal sign is not valid in that context. Can you post the 'before' and 'after' versions of that part of your script? It would help us in determining what the problem is. -- Chris Hill chris@monochrome.org ** [ Busy Expunging <|> ]