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: Stephane CHAZELAS
Subject: Re: feature-request: brief syntax for $(type -p somecommand)
Date: Thu, 2 Apr 2009 20:35:24 +0000 (UTC)
User-agent: slrn/pre1.0.0-2 (Linux)

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

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