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

2009-04-02 Thread Mike Coleman
It would be nice if there was some really brief syntax for $(type -p somecommand)

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

2009-04-02 Thread Mike Coleman
[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

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

2009-04-02 Thread 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 t

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

2009-04-02 Thread Mike Coleman
On Thu, Apr 2, 2009 at 11:33 AM, Chris F.A. Johnson wrote: > 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', '

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

2009-04-02 Thread Chris F.A. Johnson
On Thu, 2 Apr 2009, Mike Coleman wrote: On Thu, Apr 2, 2009 at 11:33 AM, Chris F.A. Johnson wrote: 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 l

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

2009-04-02 Thread Jan Schampera
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

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

2009-04-02 Thread Stephane CHAZELAS
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', >> 'string

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

2009-04-02 Thread Mike Coleman
On Thu, Apr 2, 2009 at 3:16 PM, Jan Schampera wrote: > 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',

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

2009-04-02 Thread Mike Coleman
On Thu, Apr 2, 2009 at 11:57 AM, Chris F.A. Johnson wrote: >   If that's what you want, you can include it in the function: > > p() > { >  _p=$( type -p "$@" ) >  [ -n "$_p" ] && ls -l $_p > } This is more or less what I'm doing now, with one function for each command. I suppose the command coul

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

2009-04-02 Thread Bernd Eggink
Mike Coleman schrieb: On Thu, Apr 2, 2009 at 11:57 AM, Chris F.A. Johnson wrote: If that's what you want, you can include it in the function: p() { _p=$( type -p "$@" ) [ -n "$_p" ] && ls -l $_p } This is more or less what I'm doing now, with one function for each command. I suppose the

Question

2009-04-02 Thread Brandon F
When I do traceroute in bash I am always getting 12-215-11-193.client.mchsi.com as the third or fourth site. I want to know how to clear this from my route list. So it will bounce off of a differant site. Thank you.