On 11/17/05, Jeremy Huntwork <[EMAIL PROTECTED]> 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
/bin/bash).

--
Tushar Teredesai
   mailto:[EMAIL PROTECTED]
   http://www.linuxfromscratch.org/~tushar/
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to