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


Hi Fridrich, *,

On Sat, Oct 9, 2010 at 10:23 AM, Fridrich Strba <fstrba@novell.com> wrote:
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.

I don't think so - as Stephan Bergman mentioned at the time
http://www.mail-archive.com/dev@openoffice.org/msg13080.html this
doesn't forbid bash-extensions, but rather only covers those
functionality where bash and posix overlap.

cat <<<$value >>somedoc for example still works, even if POSIXLY_CORRECT is set.

(but isn't listed in posix,
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_07_04
)

ciao
Christian

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.