Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] POSIXBUILTINS: quieten 'unset -f nonexistentfunc'
- X-seq: zsh-workers 41979
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Martijn Dekker <martijn@xxxxxxxx>
- Subject: Re: [PATCH] POSIXBUILTINS: quieten 'unset -f nonexistentfunc'
- Date: Thu, 2 Nov 2017 20:04:29 +0000
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1509653069; bh=Kbh1N+EsoaEc4tQo4T7wFOnXT+DbA1nv7br3y4XVPek=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=SoRanWS9G//82/jX/Cd4Nj+Lm+wl07G/7kQN3aVs3wwnVrwKvUVMx8foWXivvjztJ f6ywnm3uVvAqHX9UMtChQl67A/JBfkTOzQ81DIvI+BEiVOo9Btt2UVXjFpZK28Y6CK SEZB7ADionnIQ4YQ7bbFfLz60IkCOJWKKRqQDwMjMYtLr4DvF7uBq1nUs5IU5oZukP zxPMCRSm834oYs6pscsRkmUp6BsIp19lQqnAqL3go/nw0imrmb0i2r0CXi1KiDuZUU 9fF8g4oLYoC6RBcdEFFdUiNZb6XntvtowrhMKICYze6eFpcTuhx18fGFPPrMEp52f1 xJffneTo/sZVQ==
- In-reply-to: <8a9d23b7-63b5-37e0-9125-8bd5fdfc97e1@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <51c2b43e-a0d3-2e4d-15e8-b368c922beec@inlv.org> <8a9d23b7-63b5-37e0-9125-8bd5fdfc97e1@inlv.org>
On Thu, 2 Nov 2017 19:04:40 +0000
Martijn Dekker <martijn@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author