delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/16/15:57:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Thu, 16 Oct 2003 14:56:49 -0500 (CDT)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: cygwin AT cygwin DOT com
Subject: Re: Problem with scripting files (== operator)
In-Reply-To: <20031016194728.70447.qmail@web13008.mail.yahoo.com>
Message-ID: <Pine.GSO.4.56.0310161454010.823@eos>
References: <20031016194728 DOT 70447 DOT qmail AT web13008 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

Your command prompt is probably /bin/bash, your script uses /bin/sh?
That's /bin/ash, and you may have a syntax issue.
man ash
Try using test instead of [ ].
HTH

On Thu, 16 Oct 2003, Lynden Jones wrote:

> I downloaded just the default cygwin packages and ran
> into a single problem with running script files.
> Whenever I use the == operator (string comparison), I
> get an error that says: "[: ==: unknown operand".  I
> can execute the same set of commands from the command
> prompt and get no errors.  Does anyone know what is
> causing this problem?
>

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019