Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh doesn't support standard "unalias -a"
- X-seq: zsh-workers 35192
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zsh doesn't support standard "unalias -a"
- Date: Mon, 18 May 2015 14:28:17 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
In a cross-platform shell library I'm writing, I would like to start by
removing all aliases from the current execution environment, to help
assure a consistent command language. The standard command to remove all
aliases is "unalias -a". See:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/unalias.html
(For instance, ksh93 unhelpfully aliases "command" to "command " by
default, causing additional alias expansion where I don't want it.)
Unfortunately it appears that zsh does not support the "-a" option to
unalias, so I have to resort to the proprietary zsh variant:
unalias -m '*'
It would be nice if the standard -a option were added (at least in POSIX
mode, if nothing else).
Thanks,
- Martijn
Messages sorted by:
Reverse Date,
Date,
Thread,
Author