Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: compctl-examples for (un)setopt with kshoptionprint
- X-seq: zsh-workers 4176
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: PATCH: compctl-examples for (un)setopt with kshoptionprint
- Date: Fri, 26 Jun 1998 12:06:28 -0700
Completion for setopt and unsetopt was strange with kshoptionprint set.
This unsets that option before generating the possible completions.
Index: Misc/compctl-examples
===================================================================
--- compctl-examples 1998/06/17 05:04:57 1.2
+++ compctl-examples 1998/06/26 19:02:03
@@ -43,8 +43,8 @@
compctl -k "(${(j: :)${(f)$(limit)}%% *})" limit unlimit
compctl -l '' -x 'p[1]' -f -- . source
# Redirection below makes zsh silent when completing unsetopt xtrace
-compctl -s '$(setopt 2>/dev/null)' + -o + -x 's[no]' -o -- unsetopt
-compctl -s '$(unsetopt 2>/dev/null)' + -o + -x 's[no]' -o -- setopt
+compctl -s '$({ unsetopt kshoptionprint; setopt } 2>/dev/null)' + -o + -x 's[no]' -o -- unsetopt
+compctl -s '$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)' + -o + -x 's[no]' -o -- setopt
compctl -s '${^fpath}/*(N:t)' autoload
compctl -b -x 'W[1,-*[DAN]*],C[-1,-*M]' -s '$(bindkey -l)' -- bindkey
compctl -c -x 'C[-1,-*k]' -A - 'C[-1,-*K]' -F -- compctl
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author