[Libreoffice] small utility script to handle ../bin/g and similar commands
fstrba at novell.com
Sat Oct 9 01:23:11 PDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
On 09/10/10 07:54, Tor Lillqvist wrote:
> Just one small nit: As we have members in the community whose platform doesn't normally have a /bin/bash, please make sure any new shell script introduced works with a plain non-bash POSIX shell, and use /bin/sh on the hashbang line.
> (Just my personal opinion, of course.)
Personal, but valid. To test that you actually don't introduce bashisms
in a script you can simply set env variable POSIXLY_CORRECT=1 and then
the bash when invoked as /bin/sh will behave as a strict posix shell.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the LibreOffice