From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8576 invoked by alias); 18 May 2015 13:28:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35192 Received: (qmail 5039 invoked from network); 18 May 2015 13:28:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Message-ID: <5559E8F1.6070803@inlv.org> Date: Mon, 18 May 2015 14:28:17 +0100 From: Martijn Dekker User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: zsh doesn't support standard "unalias -a" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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