* RE: zsh alias question
@ 2006-04-05 20:06 Paul Lew
0 siblings, 0 replies; 4+ messages in thread
From: Paul Lew @ 2006-04-05 20:06 UTC (permalink / raw)
To: Stephen Henry; +Cc: zsh-users
>>>>> "Stephen" == Stephen Henry <stephenry@gmail.com> 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'
Stephen> at the command line, I would expect 'emacs -nw' to
Stephen> replace whenever I type 'emacs'. This does does not
Stephen> happen, and instead emacs opens in a windows as usual.
Stephen> What gives?
I have the same alias and had no problem. Try 'which emacs' to see
what is mapped.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh alias question
@ 2006-04-18 14:04 Dominic Mitchell
0 siblings, 0 replies; 4+ messages in thread
From: Dominic Mitchell @ 2006-04-18 14:04 UTC (permalink / raw)
To: zzapper; +Cc: zsh-users, zsh-workers
On Tue, Apr 18, 2006 at 01:46:23PM +0000, zzapper wrote:
> Paul Lew <paullew@cisco.com> wrote in news:17460.9011.468218.643705@cns-
> build4.cisco.com:
>
> >>>>>> "Stephen" == Stephen Henry <stephenry@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: zsh alias question
@ 2006-04-18 13:46 zzapper
0 siblings, 0 replies; 4+ messages in thread
From: zzapper @ 2006-04-18 13:46 UTC (permalink / raw)
To: zsh-users; +Cc: zsh-workers
Paul Lew <paullew@cisco.com> wrote in news:17460.9011.468218.643705@cns-
build4.cisco.com:
>>>>>> "Stephen" == Stephen Henry <stephenry@gmail.com> 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'
--
http://successtheory.com/tips/ 100 FREE Success and Self-Improvement Tips
^ permalink raw reply [flat|nested] 4+ messages in thread
* zsh alias question
@ 2006-04-05 19:47 Stephen Henry
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Henry @ 2006-04-05 19:47 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
Okay,
This is a pretty simple problem, but after looking over the documentation, I
cannot figure out what is wrong. If I type
alias emacs='emacs -nw'
at the command line, I would expect 'emacs -nw' to replace whenever I type
'emacs'. This does does not happen, and instead emacs opens in a windows as
usual.
What gives?
Stephen
[-- Attachment #2: Type: text/html, Size: 370 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-18 14:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05 20:06 zsh alias question Paul Lew
-- strict thread matches above, loose matches on Subject: below --
2006-04-18 14:04 Dominic Mitchell
2006-04-18 13:46 zzapper
2006-04-05 19:47 Stephen Henry
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).