This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: "==" operand not found


This one is in the FAQ on the Cygwin website. 

I'll give you hint: ;-)

$ /bin/bash testme.sh 1
Hello World


Scott

> -----Original Message-----
> From: Nitin Gupta [mailto:gupta@equator.com]
> Sent: Wednesday, October 23, 2002 6:22 PM
> To: cygwin@cygwin.com
> Subject: "==" operand not found
> 
> 
> 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/
> 
> 

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]