zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Martijn Dekker <martijn@inlv.org>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [PATCH] POSIXBUILTINS: quieten 'unset -f nonexistentfunc'
Date: Thu, 2 Nov 2017 20:04:29 +0000	[thread overview]
Message-ID: <20171102200429.05c32b88@ntlworld.com> (raw)
In-Reply-To: <8a9d23b7-63b5-37e0-9125-8bd5fdfc97e1@inlv.org>

On Thu, 2 Nov 2017 19:04:40 +0000
Martijn Dekker <martijn@inlv.org> wrote:
> Op 11-10-17 om 19:44 schreef Martijn Dekker:
> > Doing 'unset -f' on an unset function outputs an error message and
> > causes an unsuccessful exit status. All other shells quietly ignore it.
> > POSIX specifies for 'unset' that "Unsetting a variable or function that
> > was not previously set shall not be considered an error [...]".
> > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_29_03
> > 
> > If I have figured this out correctly, then the attached patch causes
> > 'unset -f nonexistent_function' to be quiet and return status 0 if
> > POSIXBUILTINS is active, without changing the behaviour of 'unfunction'
> > and 'unhash -f'.
> 
> Was this overlooked, or rejected?

Just got missed; I've committed it.

pws


      reply	other threads:[~2017-11-02 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-11 18:44 Martijn Dekker
2017-11-02 19:04 ` Martijn Dekker
2017-11-02 20:04   ` 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=20171102200429.05c32b88@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=martijn@inlv.org \
    --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).