Re: RFD: Essential packages, /, and /usr
On Tue, Jun 18, 2002 at 03:50:23AM -0400, Clint Adams wrote:
> (F) /usr/bin/which deathrampage 2>/dev/null && command deathrampage
>
> Advantages: will find and execute deathrampage on the command search path.
> Disadvantages: requires faith in /usr/bin/which not moving or changing
> (H) #!/bin/specific shell, and use known whence, which, type commands
>
> Advantages: no portability problems, and you might get exactly what you
> want
> Disadvantages: annoying to users everywhere
Since /usr/bin/which is a /bin/bash script, it shares the disadvantage
of (H). More so, because now you're running *two* shells whereas a
#!/bin/bash script would only need one :)
The irony is that the only reason to use which is to accomodate speed
freaks who want to be able to use non-bash shells. Now they get hit
by the bash startup time anyway. And those same speed freaks are
likely to be using ash, which has both "type" and "command -v".
I once again recommend a deathmatch between ash and zsh fans. Let
the best shell win.
Richard Braakman
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to:
- References:
- Re: RFD: Essential packages, /, and /usr
- From: Branden Robinson <branden@debian.org>
- Re: RFD: Essential packages, /, and /usr
- From: Herbert Xu <herbert@gondor.apana.org.au>
- Re: RFD: Essential packages, /, and /usr
- From: Clint Adams <schizo@debian.org>
- Re: RFD: Essential packages, /, and /usr
- From: Branden Robinson <branden@debian.org>
- Re: RFD: Essential packages, /, and /usr
- From: Clint Adams <schizo@debian.org>