Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: typeset -p <TAB>
- X-seq: zsh-workers 42299
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: typeset -p <TAB>
- Date: Fri, 19 Jan 2018 12:00:22 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1516359627; bh=sGdZlRnW9n6RzaSx7pwX8W6j2+4lxId+VZtw9Aei/P4=; h=From:References:To:Subject:Date:From:Subject; b=W/O0Rk3Uc5CD1GRbVKBzwXoPWecDaZwpWTvnS0WkuCljU8TjM6qyfxxJFrvHzlIrrkrtvHWy5VdVzg1BY/aUXf93aO1INmQvfAi1VGPH0gWsuVhtY0H6/uFWmwaadUyegYleHL4jSvRn5H1W6LjoXN4MbsbqLpBUhAPv1+Cn1UfH+xS6ZD5bGMW5qWTTZJH2vNcxGXPb9Onps5RTAUKx+kOizGGHThJpCAdCIdi2/K/burqRVGZtkxPhVgyGfR6Lc/mR0+qITFtwI3LFjdfJNIkfKzm27he6QU2RA/hqlY3E3T45Im05jdH7yqZ3ND5tmEjYi3zp09wwDGs/hpT//w==
- In-reply-to: <20180113184910.s44mewht2jb3ylfw@tarpaulin.shahaf.local2>
- 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: <20180113184910.s44mewht2jb3ylfw@tarpaulin.shahaf.local2>
On 13 Jan, Daniel Shahaf wrote:
> «typeset -p Z<TAB>» completes nothing.
>
> The following will fix it, at the cost of only completing "1" as a
> pasted argument (not in a separate word).
No, it is supposed to be an optional argument as follows. Not quite sure
how this ended up wrong given that the patch in 41927 has it right.
Oliver
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index e4446a6ff..14d5d371b 100644
--- a/Completion/Zsh/Command/_typeset
+++ b/Completion/Zsh/Command/_typeset
@@ -30,7 +30,7 @@ allargs=(
k "($popts -w -z)-+k[mark function for ksh-style autoloading]"
l "($popts -T)-l[convert the value to lowercase]"
m '(-A -E -F -T -i)-m[treat arguments as patterns]'
- p '-p+[output parameters in form of calls to typeset]:option:((1\:multi-line\ output\ of\ arrays))'
+ p '-p+[output parameters in form of calls to typeset]::option:((1\:multi-line\ output\ of\ arrays))'
r '(-f)-+r[mark parameters as readonly]'
rf '-r[remember autoload path]'
Rf '-R[remember autoload path, error if not found]'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author