Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.1.0.14.2.20021023162634.043a2a58@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Wed, 23 Oct 2002 16:30:12 -0700 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: "==" operand not found In-Reply-To: <3DB72115.7050207@equator.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Nitin, You're most likely accustomed on your Linux system to "/bin/sh" being BASH. On Cygwinm /bin/sh is ASH, and it is far more minimal in its implementation of the POSIX shell standard, and does not provide "==" as an equivalent for "=" in the "test" (a.k.a. "[") built-in. Randall Schulz Mountain View, CA USA At 15:22 2002-10-23, Nitin Gupta wrote: >Hi, >following script runs fine on linux, but not on cygwin. Please let me know >equivalent of "==" on cygwin. > >Thanks, >Nitin > >#!/bin/sh >if [ "$1" == "1" ]; then >echo Hello World >fi -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/