Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _sh
- X-seq: zsh-workers 15722
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: _sh
- Date: Tue, 28 Aug 2001 22:39:34 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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