Re: Proposed new POSIX sh policy
On Mon, Nov 06, 2006 at 09:01:27AM -0800, Russ Allbery <rra@debian.org> wrote:
> Mike Hommey <mh@glandium.org> writes:
> > Russ Allbery <rra@debian.org> wrote:
>
> >> + <item>the <tt>-a</tt> and <tt>-o</tt> <tt>test</tt> operators
> >> + must be supported</item>
>
> > Why is that needed ?
>
> It's in widespread use in both Debian scripts and in upstream scripts.
> When we tried to warn about this behavior in lintian, it turned up
> hundreds of packages and we got a lot of objections to the check on the
> grounds that dash supports this construct and the only shell that doesn't
> is posh. It seemed like the general consensus was that requiring that all
> those scripts be modified to require bash was more trouble than it was
> worth.
Well we got bug reports for that on firefox, IIRC, and we changed it,
that was not a real problem to replace [ some != test -a other = test ]
with [ some != test ] && [ other = test ]...
Mike
Reply to: