zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Request about unhash / unfunction / unset
Date: Mon, 23 Mar 2015 21:40:37 +0000	[thread overview]
Message-ID: <20150323214037.3d5c67bf@ntlworld.com> (raw)
In-Reply-To: <ED2B935DE024BE43B79F5C1268FCE9EBAC681B6D@PRN-MBX01-2.TheFacebook.com>

On Mon, 23 Mar 2015 21:06:26 +0000
Larry Schrof <larrys@fb.com> wrote:
> I would like to humbly request that if zsh is asked to unhash an entry
> that is not in the hash table, it silently does nothing if the entry
> was not previously there. (Instead of generating an error message.)

In fact, unset already works like that: we changed it because that's
what the standard requires.  So it might make sense to be consistent.

I see bash is silent with "unset -f" which is unfunction but not
"unalias".

pws


      reply	other threads:[~2015-03-23 21:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 21:06 Larry Schrof
2015-03-23 21:40 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150323214037.3d5c67bf@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).