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

Bug#218530: Suboptimal conditional rune for initscripts



On Sat, Nov 01, 2003 at 04:55:36PM +0000, Ian Jackson wrote:
> Branden Robinson writes ("Re: Bug#218530: Suboptimal conditional rune for initscripts"):
> > Ah, I see the reason:
> ...
> > [127] branden@redwald:~ % ash
> > $ type ls
> > ls is /bin/ls
> 
> But you don't, because it has a nonzero exit status if the command is
> not found - and foundness is the only thing the maintscript is
> interested in.

Ah, right.

Well, then, type and which seem to be equivalent.  "which" seems far
more intiutitive to me, but then I grew up using TCSH and am accustomed
to most shells having it as a built in.

-- 
G. Branden Robinson                |     Never attribute to malice that
Debian GNU/Linux                   |     which can be adequately explained
branden@debian.org                 |     by stupidity.
http://people.debian.org/~branden/ |     -- Hanlon's Razor

Attachment: signature.asc
Description: Digital signature


Reply to: