zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: compctl-examples for (un)setopt with kshoptionprint
@ 1998-06-26 19:06 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1998-06-26 19:06 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-26 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-26 19:06 PATCH: compctl-examples for (un)setopt with kshoptionprint Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).