Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


-----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-----

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.