This is the mail archive of the
mailing list for the Cygwin project.
Re: behaviour of "for (( exp1; exp2; exp3 )); do COMMANDS; done"
On Tue, May 27, 2003 at 12:42:21PM +0100, Sam Edge wrote:
> Make sure that if your script uses Bash-specific features, it starts
> with #!/bin/bash and not with #!/bin/sh. That way it'll work anywhere.
You've made the assumption that bash is always in /bin. I've seen it
in /bin, /usr/bin, /usr/local/bin, /usr/contrib/bin, and /opt/bash/bin.
~/bin would be another likely place for it.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html