This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: "==" operand not found
- From: "Scott Prive" <Scott dot Prive at storigen dot com>
- To: "Nitin Gupta" <gupta at equator dot com>,<cygwin at cygwin dot com>
- Date: Wed, 23 Oct 2002 18:28:53 -0400
- Subject: 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/