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

PATCH: _awk: Allow sticked option forms



This came up on irc,

 <Mikachu> can you give a concrete example of a situation where the awk completion doesn't do what you want?
 <iaj> Mikachu: well if I had typed:   awk -F\; '{print $1}' <TAB>
 <iaj> nothing would show up

---
 Completion/Unix/Command/_awk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Completion/Unix/Command/_awk b/Completion/Unix/Command/_awk
index da748e9..c493c3b 100644
--- a/Completion/Unix/Command/_awk
+++ b/Completion/Unix/Command/_awk
@@ -14,8 +14,8 @@
 # Fixing this is beyond my current _arguments expertise--help
 # appreciated.
 
-_arguments -S -s '-F[define input field separator to be an extended regular expression]:extended regular expression:' \
-    '*-v[assign values to variables]:assignment:' \
-    '(1)-f[program file]:program file:_files' \
+_arguments -S -s '-F+[define input field separator to be an extended regular expression]:extended regular expression:' \
+    '*-v+[assign values to variables]:assignment:' \
+    '(1)-f+[program file]:program file:_files' \
     '1:program text:' \
     '*:input files:_files'
-- 
1.8.2-rc3



Messages sorted by: Reverse Date, Date, Thread, Author