Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Fix inaccuracies in _brace_parameter completion wording
- X-seq: zsh-workers 41827
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: [PATCH] Fix inaccuracies in _brace_parameter completion wording
- Date: Sat, 07 Oct 2017 22:50:31 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1507409434; bh=KpSnTyqzHi1Ku7nE8AhfHFeQf7Q1mwrNuL9JpJbdcYo=; h=From:References:To:Subject:Date:From:Subject; b=YLdTMJQvX6uTOWZfnLvN6/olvVDLZQw97TaYk3BOYN6rjRleVN7wnLCNzqJ8p7IBPHsPhyyAfCLYlIoTVBnqDQn/kRAxM3+pRZbCbj2PNIFkyaFPqyieVKnQWuEOe1Z4VaNsIOzfKjCk3W6hDNy5WfrY9IJ7hLaTjK60Cu8gnT/Rt5LH4Qx5TMph4X+koS/4iXryp6e70n2bgNcbQxhItt/pHReWtZooeDxpqn3SV7kAcqykno91yGzHLfr5qHUvfwOLxaj7gujdPcn0LanX8y+KX545z8cm9SjWwmxjyofcsEBHPwFiEkbbiFyBduZ9RFlMD8NeLsLkvn+G0FwHtA==
- In-reply-to: <CA+_8RBA1eGWvYqPZpD8mc7nJwdWO7CXi6x+_EK01UrteEGaPnA@mail.gmail.com>
- 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
- References: <CA+_8RBA1eGWvYqPZpD8mc7nJwdWO7CXi6x+_EK01UrteEGaPnA@mail.gmail.com>
dana wrote:
> The _brace_parameter completion function indicates that the expansion flags
> B, E, M, and R can be used with the ${foo/bar/baz} syntax. According to the
> documentation (zshexpn), this is not so:
Thanks for this. I've applied the patch.
Looking at that function the description for :? also looks wrong - the
sense is inverted.
Oliver
diff --git a/Completion/Zsh/Context/_brace_parameter b/Completion/Zsh/Context/_brace_parameter
index f22db8895..e1e9adc41 100644
--- a/Completion/Zsh/Context/_brace_parameter
+++ b/Completion/Zsh/Context/_brace_parameter
@@ -195,7 +195,7 @@ elif compset -P '*:'; then
'+:substitute alternate value if parameter is non-null'
'=:substitute and assign alternate value if parameter is null'
'\:=:unconditionally assign value to parameter'
- '?:print error if parameter is set and non-null'
+ '?:print error if parameter is null'
'#:filter value matching pattern'
'/:replace whole word matching pattern'
'|:set difference'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author