----Original Message----
>> I assume in my case I can use '#!/bin/sh' & '#!/bin/bash'
>> interchangeably?
>=20
> Not if you want your scripts to be portable. If you rely on bash-isms
> (and there are plenty) you need to use /bin/bash.
>=20
> On Ubuntu (not sure when this started), /bin/sh links to /bin/dash
>=20
> j
It started with Ubuntu 6.10. Debian just changed -- Lenny is bash,
but Squeeze is dash.
(which is kind of funny, since the "d" in dash stands for "Debian")
I second Joshua's advice.
Always use an explicit shell when you write scripts. The default
shell can be changed on a per machine basis, or as noted above it=20
Can be changed for you during an operating system upgrade.
For both Ubuntu and Debian there were quite a few package maintainers
who got burned by writing a script that depended on bash, but had
/bin/sh in the shebang line.
It's just good practice to say what you mean and mean what you say
when writing scripts.
James Z=
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Nov 1 09:23:46 2010
This archive was generated by hypermail 2.1.8 : Mon Nov 01 2010 - 09:23:46 AKDT