[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Have `rc' and `runsystem' use /bin/sh
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Have `rc' and `runsystem' use /bin/sh |
Date: |
Mon, 07 Nov 2011 23:37:38 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Samuel Thibault <samuel.thibault@gnu.org> skribis:
> Ludovic Courtès, le Mon 07 Nov 2011 22:43:22 +0100, a écrit :
>> These two scripts really need a plain POSIX shell, not necessarily
>> Bash. This patch changes the shebang accordingly.
>
> Mmm, are "local" and functions really in POSIX shells? dash refuses
> the function keyword,
Good points.
Functions are POSIX, but with the f() notation can be used as you
wrote [0].
‘local’ isn’t POSIX actually but it’s only used once.
Hmm, should we ignore the patch for now? What bothers me is the
hardcoded /bin/bash.
Ludo’.
[0]
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_05