Debian Developers - Re: Proposed new POSIX sh policy

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > November 2006 > Re: Proposed new POSIX sh policy





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Proposed new POSIX sh policy
Bruce Sass

2006-11-15, 1:32 am

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


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com