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/