[PATCH] Use '[]' over 'test' throughout.
James Cloos
cloos at jhcloos.com
Tue Sep 14 11:52:14 PDT 2010
>>>>> "AC" == Alan Coopersmith <alan.coopersmith at oracle.com> writes:
AC> Right - I don't know of any OS we support with a shell that doesn't
AC> support [] - even the ancient Solaris bourne shell can handle them,
AC> and it's usually the cause of many shell workarounds.
Back in the day (80's) /usr/bin/[ was a symlink to /usr/bin/test; I see
that current coreutils uses a separate binary, though.
IOW, even if the shell doesn't support it, there ought to be an [
executable in $PATH.
-JimC
--
James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6
More information about the xorg-devel
mailing list