This is the mail archive of the
mailing list for the Cygwin project.
Re: Problem with scripting files (== operator)
Your command prompt is probably /bin/bash, your script uses /bin/sh?
That's /bin/ash, and you may have a syntax issue.
Try using test instead of [ ].
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?
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html