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

Re: Bug#270868: Should not implement "test" builtin



On Thu, 09 Sep 2004 23:10:10 +0200, Clint Adams wrote:
> If there are any of these that you feel should be removed along with
> "test", why shouldn't they be removed from all other shells as well?

After saying that "echo" should also be removed from posh, I forgot to
answer the question that was posed.

The answer is that there is no reason to remove extended features from
shells (so long as these features don't make the shells incompatible with
the POSIX spec): scripts can always use these extended features so long
as they name the shell in the shebang.  This doesn't go for posh, though.
The purpose of posh, I take it, is to help maintainers to test the policy
compliance of their scripts. In order to fulfill this purpose, posh should
break scripts that don't adhere to policy.  posh does this, but it also
breaks scripts that use test -a which, according to the present argument,
isn't prohibited by policy.

-- 
Thomas Hood



Reply to: