On Sun, 2005-10-02 at 17:31 -0400, Justin Pryzby wrote:
> Package: exim4
> Severity: normal
> Version: 4.52-1
> File: /etc/init.d/exim4
>
> The exim4 initscript /etc/init.d/exim4 uses:
>
> #!/bin/sh
[...]
> if [ "$(readlink /proc/$pid/root)" == "/" ]; then
[...]
> Isn't '$(' a bashism (That's what the vim maintainer said in #319825)
No, $() should be supported by any POSIX-compliant shell; it's a "shall"
in the standard. See
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03
The ==, otoh, *is* non-compliant and a Bashism.
Regards,
Adam
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]