This is the mail archive of the
mailing list for the Cygwin project.
Re: bash vs sh in scripts
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 07 Dec 2005 12:12:39 -0800
- Subject: Re: bash vs sh in scripts
- References: <20051207195602.GA27946@panix.com>
- Reply-to: cygwin at cygwin dot com
David Arnstein wrote:
> Some cygwin packages install shell scripts that begin with the line
> The latest example is the smartd script that smartmontools installs in
> /etc/rc.d/init.d. But there are many others. This seems to be standard
> Linux usage.
> On some of my PCs, this causes the shell script to fail. In most
> cases, I can fix this by replacing the above line with
/bin/sh should exist and be a hard-link to /bin/bash. If this is not
the case you have an installation problem. The bash postinstall script
should ensure this.
/bin vs. /usr/bin is meaningless since they're the same under cygwin.
If you have no /bin/sh you will run into countless problems all over the
place, such as anything that calls system().
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html