Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Use new array syntax in _getconf
- X-seq: zsh-workers 30456
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Use new array syntax in _getconf
- Date: Fri, 27 Apr 2012 09:13:04 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=OOmMTeAIgNo1wkWUHTksfiDIHHVkL6b1ZcSEqpbhsRs=; b=xB7IKd0R4MBka2oEuP/bylIXkCiwxXKMhui7MH3lL3qVzuZP4HnICrIQuPns+ktshq Zng7QpW/PxZ8oxAHQpa71JQU6LEDuX3dBDnjn4BckkNuselyf8kMn1EKBGvKN4pq4Zp1 pi4IdOcVimVz+5RzJvP8N3iGR8uWPDA8AA/IPPAGwMjshhiZWOfhV7ny8+6/yed2c5EE fgSTAfj85jcIpkOwkyhAgodgxRx4OH6ftGbtYa3NajivYyamrN/7kYdfUsKkPqHaVewh IJ87FBYFmniKa597lL+l1JSxGit9ZHF+g0tUhPDMtnWTWKk4ldGmYwpvrMkANysWcib9 xV/A==
- 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
tried git grep --cached '(j\(.\)|\1)' and looked through the matches, this
was the only one that was obvious (to me) to convert to the new syntax.
---
Completion/Unix/Command/_getconf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_getconf b/Completion/Unix/Command/_getconf
index 76d9c76..f2c713a 100644
--- a/Completion/Unix/Command/_getconf
+++ b/Completion/Unix/Command/_getconf
@@ -27,7 +27,7 @@ if [[ CURRENT -eq 2 ]]; then
_tags syswideconfig pathconfig standardsconfig confstring restconfig
allkeys=(${${(f)"$(getconf -a 2>/dev/null)"}%%[: ]*})
- restkeys=(${allkeys:#(${(j.|.)~mykeys})})
+ restkeys=(${allkeys:|mykeys})
while _tags; do
_requested -V syswideconfig expl 'systemwide configuration variables' \
--
1.7.10.GIT
Messages sorted by:
Reverse Date,
Date,
Thread,
Author