This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: "==" operand not found
- From: Randall R Schulz <rrschulz at cris dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 23 Oct 2002 16:30:12 -0700
- Subject: Re: "==" operand not found
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/