Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Make typeset -p1 work in combination with -m.
- X-seq: zsh-workers 41927
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Make typeset -p1 work in combination with -m.
- Date: Tue, 17 Oct 2017 20:56:53 +0200
- 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=1508297330; bh=gWYF5ZLooFiX7aLmylbDXA4Eend8bjPRTZob/q5eeVI=; h=From:References:To:Subject:Date:From:Subject; b=M29h/Lp2BG8VB9RcZaquCnDau2Mof/12YHKrR0Ev9W54RBrMf4xNr4VTaKcAcAMAkYDZIb2p5IKyfqtXevULbFFM6dUOHQHPzYhT0+3zzor3rGRhgipGx7ysp451Arla860hNqiVQrrPtenhsFBp8CNKAYT/Ji1tui7bJOJ5gJ+47f9emsyE+ylmFEdC5M2akg7TzrRdO6N2h2KmqGBuP7keaeoc2WTx74KaG/Oy4wdhmCBK/hwRhB8MuWdOXZCUu5DHZ0HGsk8GEEJxbwN31aEtGsBlRb81YgSe249YBZaV5+QlAA+lZjhc8MclnJ1IWhw/tAMl/YkWlJksLGA7kA==
- In-reply-to: <20171017182700.28303-1-danielsh@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: <20171017182700.28303-1-danielsh@tarpaulin.shahaf.local2>
Daniel Shahaf wrote:
> We should also teach _typeset about the new optional argument.
Like this, right?
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index 160150234..fb9e3ab5e 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]'
+ 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