2009-04-2, 12:33(-04), Chris F.A. Johnson:
> On Thu, 2 Apr 2009, 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.
>
>     Use a function, e.g.:
>
> p()
> {
>    pp=$( type -p "$@" )
> }
[...]

For information, zsh has =cmd, which is a globbing operator.

$ sum =bash
59911   709

-- 
Stéphane

Reply via email to