On 11/17/05, Tushar Teredesai <[EMAIL PROTECTED]> wrote:
> > Tushar Teredesai wrote:
> > >
> > > type -p has problems if the command is aliased to something.
> >
> 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).

Good call.  type -P doesn't fly on my old bash (1.14), but that
probably doesn't matter.  Otherwise, a worthy substitution IMO.

--
Dan
--
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