bash script question

Polytropon freebsd at edvax.de
Tue Dec 1 21:42:13 UTC 2009


On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen <lazlar at lazlarlyricon.com> wrote:
> Why are you using bash? To make a shell script as portable as possible, 
> use /bin/sh. Bash is a third party shell, that isn't included in a base 
> installation (you're not using bash as root's shell, are you?). By using 
> /bin/sh, you make sure the script will run without having to install any 
> ports.

That's a very good advice. Using sh is strongly recommended
for maximal portability. Use sh if you're not requiring 
features that are bash-only.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list