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

PATCH: _sh



I have a feeling I intended to do even more here, but lost interest.
Still, it's a start.

By the way, text.c outputs the supposedly unpukka `=' for tests inside
double brackets instead of `=='.  Of course, everyone uses `=' most of
the time anyway.

Index: Completion/Unix/Command/_sh
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sh,v
retrieving revision 1.1
diff -u -r1.1 _sh
--- Completion/Unix/Command/_sh	2001/04/02 12:01:38	1.1
+++ Completion/Unix/Command/_sh	2001/08/28 20:32:24
@@ -1,5 +1,14 @@
 #compdef sh ksh bash zsh csh tcsh rc
 
+if [[ $service == zsh ]]; then
+  # try a bit harder
+  if [[ ${words[CURRENT-1]} == -o ]]; then
+    _options
+    # no other possibilities
+    return
+  fi
+fi
+
 if (( CURRENT == ${words[(i)-c]} + 1 )); then
   compset -q
   _normal

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk



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