[Libreoffice] small utility script to handle ../bin/g and similar commands

Fridrich Strba fstrba at novell.com
Sat Oct 9 01:23:11 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

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.

Cheers

Fridrich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkywJm8ACgkQu9a1imXPdA+DNgCfREh0ZYWNNx8NYcB663HGapdc
k1cAnjcX1FcRHj3kz4u9xOWSY/W9Z8eo
=58+w
-----END PGP SIGNATURE-----


More information about the LibreOffice mailing list