Re: which vs. type, and recursion?

2021-09-04 Thread Richard Hector
On 4/09/21 9:26 pm, Brian wrote: On Sat 04 Sep 2021 at 21:21:38 +1200, Richard Hector wrote: Greg Wooledge pointed out in another thread that 'type' is often better than 'which' for finding out what kind of command you're about to run, and where it comes from. A quick test, however, threw up

Re: which vs. type, and recursion?

2021-09-04 Thread Brian
On Sat 04 Sep 2021 at 21:21:38 +1200, Richard Hector wrote: > Greg Wooledge pointed out in another thread that 'type' is often better than > 'which' for finding out what kind of command you're about to run, and where > it comes from. > > A quick test, however, threw up another issue: > >

Re: which vs. type, and recursion?

2021-09-04 Thread john doe
On 9/4/2021 11:21 AM, Richard Hector wrote: Greg Wooledge pointed out in another thread that 'type' is often better than 'which' for finding out what kind of command you're about to run, and where it comes from. A quick test, however, threw up another issue: richard@zircon:~$ type ls ls is

which vs. type, and recursion?

2021-09-04 Thread Richard Hector
Greg Wooledge pointed out in another thread that 'type' is often better than 'which' for finding out what kind of command you're about to run, and where it comes from. A quick test, however, threw up another issue: richard@zircon:~$ type ls ls is aliased to `ls --color=auto' Great, so it's