This is the mail archive of the
cygwin
mailing list for the Cygwin project.
bash vs sh in scripts
- From: David Arnstein <arnstein at panix dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 7 Dec 2005 14:56:02 -0500
- Subject: bash vs sh in scripts
- Reply-to: arnstein at pobox dot com
Some cygwin packages install shell scripts that begin with the line
#!/bin/sh
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
#!/usr/bin/bash
I would like a canonical solution to this issue. Should I simply copy
/usr/bin/bash.exe to /bin/bash.exe? This has fixed the problem on one
of my PCs.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/