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

Bug#218530: Summary of options for improving conditional rune for initscript calls



reopen 218530 !
retitle 218530 Please require that /bin/sh implement "command -v"
thanks

On Sat, 2004-06-26 at 00:21, David Weinehall wrote:
> posh by design only implements what the policy currently says
> is allowed.  The policy currently says that only POSIX + echo -n is
> allowed.  I'm happy with either adding `command -v' or the entire set of
> commands in UP.  I don't want stuff from XSI be mandated, though,
> XSI contains too much junk and old workarounds for warts.


A case has been made here for adding "command -v"; I think we should
confine ourselves to that.

I see that in policy version 3.6.1.1 the rune in section 9.3.3.2 has
already been updated to use "command -v":

     	if command -v invoke-rc.d >/dev/null 2>&1; then
     		invoke-rc.d package <action>
     	else
     		/etc/init.d/package <action>
     	fi

and this bug has been closed.

I'm reopening this and retitling to track another suggestion: that
section 10.4 be changed to mention "command -v" along with "echo -n".
dash and bash already implement "command -v".  It would have to be
implemented in posh too.  What other packages would be affected?
--
Thomas




Reply to: