* can't unalias global
@ 2007-10-05 9:14 Atom Smasher
2007-10-05 9:49 ` Mikael Magnusson
0 siblings, 1 reply; 3+ messages in thread
From: Atom Smasher @ 2007-10-05 9:14 UTC (permalink / raw)
To: zsh-users
as seen below, i can unset a command alias, but not a global alias. any
ideas? thanks...
% alias foo=bar
% alias -g zsh-dir=/usr/ports/shells/zsh
% alias
foo=bar
rm='rm -i'
run-help=man
which-command=whence
zsh-dir=/usr/ports/shells/zsh
% unalias foo
% unalias zsh
unalias: no such hash table element: zsh
% unhash -a zsh
unhash: no such hash table element: zsh
% alias
rm='rm -i'
run-help=man
which-command=whence
zsh-dir=/usr/ports/shells/zsh
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"If you step back and look at the data, the optimum amount of
red meat you eat should be zero."
-- Walter Willett, M.D., of Brigham and Women's
Hospital, director of a study that found a close
correlation between red meat consumption and
colon cancer.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't unalias global
2007-10-05 9:14 can't unalias global Atom Smasher
@ 2007-10-05 9:49 ` Mikael Magnusson
2007-10-05 10:03 ` Atom Smasher
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2007-10-05 9:49 UTC (permalink / raw)
To: zsh-users
On 05/10/2007, Atom Smasher <atom@smasher.org> wrote:
> as seen below, i can unset a command alias, but not a global alias. any
> ideas? thanks...
>
> % alias foo=bar
>
> % alias -g zsh-dir=/usr/ports/shells/zsh
>
> % alias
> foo=bar
> rm='rm -i'
> run-help=man
> which-command=whence
> zsh-dir=/usr/ports/shells/zsh
>
> % unalias foo
>
> % unalias zsh
> unalias: no such hash table element: zsh
>
> % unhash -a zsh
> unhash: no such hash table element: zsh
unalias \zsh-dir ?
> % alias
> rm='rm -i'
> run-help=man
> which-command=whence
> zsh-dir=/usr/ports/shells/zsh
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't unalias global
2007-10-05 9:49 ` Mikael Magnusson
@ 2007-10-05 10:03 ` Atom Smasher
0 siblings, 0 replies; 3+ messages in thread
From: Atom Smasher @ 2007-10-05 10:03 UTC (permalink / raw)
To: zsh-users
On Fri, 5 Oct 2007, Mikael Magnusson wrote:
> unalias \zsh-dir ?
=============
of course... i have to escape the global alias, or the shell tries to
interpret it before unhashing it. doh!
maybe the zshbuiltins man page should mention that...?
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"Every successful revolt is termed a revolution,
and every unsuccessful one a rebellion."
-- Joseph Priestly, 1791
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-05 10:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-05 9:14 can't unalias global Atom Smasher
2007-10-05 9:49 ` Mikael Magnusson
2007-10-05 10:03 ` Atom Smasher
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).