Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2009 22:42:10 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Rolf G Nielsen <lazlar@lazlarlyricon.com>
Cc:        =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= <laszlo_danielisz@yahoo.com>, freebsd-questions@freebsd.org
Subject:   Re: bash script question
Message-ID:  <20091201224210.15ab009d.freebsd@edvax.de>
In-Reply-To: <4B15774A.5040700@lazlarlyricon.com>
References:  <560275.79074.qm@web30808.mail.mud.yahoo.com> <4B15774A.5040700@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen <lazlar@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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091201224210.15ab009d.freebsd>