Web lists-archives.com

Re: [Mingw-msys] forking issue on Windows XP?

On Wed, 2008-01-09 at 13:37 +1100, Michael Abbott wrote:
> Thanks Keith,

You're welcome.

> It turned out that it was referring to #!/bin/bash but a "which bash"
> doesn't come up with anything.

By default, we install bash as sh.exe, because that way it runs in sh
compatibility mode; this tends to be most productive for use as make's
working shell, in delivering MSYS' principal objective.

If you want to use it as bash proper, for more general use, you can
copy /bin/sh.exe to /bin/bash.exe, (or use ln, to hard link it on NTFS),
and you can have both.

> I changed it to #!/bin/sh and it now works.

This should *always* be preferred over #!/bin/bash, unless you really
need some particular extended function of bash; every POSIX system will
have /bin/sh, but not all have bash.  Get into the habit of writing for
the more standardised platform, and you have fewer headaches when you
are asked to deploy your code on a different host.


Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Mingw-msys mailing list