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

Re: Intent To Split: netbase

On Mon, Aug 14, 2000 at 09:54:28AM -0400, Chad Miller wrote:
> On Mon, Aug 14, 2000 at 09:22:27AM -0400, Michael Stone wrote:
> > Perhaps not. But a traceroute in /usr/bin would satisfy more people than
> > a traceroute in /usr/sbin.
> Hear, hear!  It would be a flag day for a few poorly written programs
> out there, but a reorg is worth it.

Then they're VERY poorly written.  The proper way (in posix sh) to invoke a
command that should be in the path (but look before you leap) is this:

if command -v desired_command > /dev/null 2>&1; then
  desired_command --args

(It would be nice if POSIX had thought to include a -s option to shut
command up and just return an exist status so as to avoid all that ugly
redirection, but oh well.)

G. Branden Robinson             |       If you have the slightest bit of
Debian GNU/Linux                |       intellectual integrity you cannot
branden@debian.org              |       support the government.
http://www.debian.org/~branden/ |       -- anonymous

Attachment: pgpVnE25ZOdDN.pgp
Description: PGP signature

Reply to: