[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Proposed new POSIX sh policy



On Tue November 14 2006 19:06, Thomas Bushnell BSG wrote:
> I refused to stop using test -a in my packages as well, and refused
> to declare #!/bin/bash.
>
> Here's why.
>
> test -a is not a "bashism".
>
> It's a feature of the Debian test program.  It happens that bash
> declares a builtin, but that's irrelevant.  Bash's builtin is
> compatible with the Debian test, and *that's* relevant.
>
> Some /bin/sh programs happen to *override* the Debian test builtin,
> and do so *in incompatible ways*.  If those /bin/sh programs did not
> declare a test builtin, there would be no problem: my scripts would
> get the Debian implementation of test, and everything would be fine.

Is moving the test executable to /bin with a symlink to /usr/bin (so 
existing scripts which already use a path continue to work) then 
requiring /bin/test a solution?


- Bruce



Reply to: