Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh alias question



On Tue, Apr 18, 2006 at 01:46:23PM +0000, zzapper wrote:
> Paul Lew <paullew@xxxxxxxxx> wrote in news:17460.9011.468218.643705@cns-
> build4.cisco.com:
> 
> >>>>>> "Stephen" == Stephen Henry <stephenry@xxxxxxxxx> writes:
> > 
> >     Stephen> Okay, This is a pretty simple problem, but after looking
> >     Stephen> over the documentation, I cannot figure out what is
> >     Stephen> wrong. If I type
> > 
> >     Stephen> alias emacs='emacs -nw'
> > 
> > I have the same alias and had no problem.  Try 'which emacs' to see
> > what is mapped.
> > 
> 
> Is there a generally agreed convention for ensuring that one is using the 
> "native" tool rather than a same-named function alias etc?
> 
> eg
> alias emacs='/bin/emacs -nw'
> or
> alias emacs='\emacs -nw'

I think that this will always work:

  alias emacs='command emacs -nw'

-Dom



Messages sorted by: Reverse Date, Date, Thread, Author