which script

Tushar Teredesai sukucorp at gmail.com
Thu Nov 17 10:59:51 PST 2005

On 11/17/05, Jeremy Huntwork <jhuntwork at linuxfromscratch.org> wrote:
> Tushar Teredesai wrote:
> >
> > type -p has problems if the command is aliased to something.
> OK, thanks for the tip. Is that a common occurence?

I think so. I have many executables aliased so as to add my favorite
options by default.

Getting back to your suggestion, using "type -P" instead of "type -ap
| head -n 1" is shorter alternative (as long as the script says

Tushar Teredesai
   mailto:tushar at linuxfromscratch.org

More information about the blfs-dev mailing list