[Novalug] search path

shawn wilson ag4ve.us@gmail.com
Wed Feb 5 15:46:27 EST 2014


Sorry, it's zsh so I kinda have everything :)

On Wed, Feb 5, 2014 at 3:42 PM, Jon LaBadie <novalugml@jgcomp.com> wrote:
> On Wed, Feb 05, 2014 at 08:10:11AM -0500, James Ewing Cottrell III wrote:
>> And who knows which is which, and who is who?
>>
>> 'which' has traditionally been a csh shell script, meaning that it would
>> look at csh aliases as well as look thru $PATH. However, recent versions
>> of Linux have fixed that.
>>
>> Still, the command 'type' is a better answer, since in is builtin to
>> bash. I believe that 'type' is also an alias for 'whence', which is the
>> ksh builtin. I'd hazard a guess that which or whence might also be a zsh
>> builtin, but if one of us is going to have to read the manual, it might
>> as well be you.
>
> The original poster's examples used csh's "%" prompt.
> I don't think "type" is available in csh shells.
>
> Jon
>>
>> Try tying the command twice, as in 'type type', 'which which', or
>> 'whence whence' and see what happens.
>>
>
> --
> Jon H. LaBadie                  novalugml@jgcomp.com
>  11226 South Shore Rd           (703) 787-0688 (H)
>  Reston, VA  20190              (609) 477-8330 (C)
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug



More information about the Novalug mailing list