Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Use new array syntax in _getconf



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