bug-bash
[Top][All Lists]
Advanced

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

Re: feature-request: brief syntax for $(type -p somecommand)


From: Jan Schampera
Subject: Re: feature-request: brief syntax for $(type -p somecommand)
Date: Thu, 02 Apr 2009 22:16:49 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Mike Coleman wrote:
> [Oops--I sent that incomplete.]
> 
> It would be nice if there was some really brief syntax for
> 
>     $(type -p somecommand)
> 
> I find myself using this all day long with 'ls', 'file', 'ldd',
> 'strings', 'nm', etc., and the current incantation is just long enough
> to be annoying.
> 
> Mike
> 
> 

Why do you need to get the path of a program that's in PATH?

If you only need to check if it's in PATH then you can use other things,
and these in a loop.

J.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]