* bug with "compctl -L" in 3.0.1 @ 1996-11-22 10:40 Fung-Chai Lim 1996-11-22 11:08 ` Peter Stephenson 0 siblings, 1 reply; 4+ messages in thread From: Fung-Chai Lim @ 1996-11-22 10:40 UTC (permalink / raw) To: The Z-shell Hi, Although I did a ``compctl -e disable'', ``compctl -L disable'' returns ``compctl disable''. So does ``compctl''. This bug is in both versions 3.0.0 and 3.0.1. Regards, fclim. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug with "compctl -L" in 3.0.1 1996-11-22 10:40 bug with "compctl -L" in 3.0.1 Fung-Chai Lim @ 1996-11-22 11:08 ` Peter Stephenson 1996-11-22 15:06 ` Zoltan Hidvegi 0 siblings, 1 reply; 4+ messages in thread From: Peter Stephenson @ 1996-11-22 11:08 UTC (permalink / raw) To: Fung-Chai Lim, zsh-workers Fung-Chai Lim wrote: > Hi, > > Although I did a ``compctl -e disable'', ``compctl -L disable'' > returns ``compctl disable''. So does ``compctl''. This bug > is in both versions 3.0.0 and 3.0.1. The manual page says -e has no effect without -d, so on its own it's completely ignored and not even stored: you would need -de (I don't know why it was done like that). However, since its function is to show up commands even if they're already disabled (so you wouldn't want to call disable with them), I doubt if it's quite what you want: I should think ``compctl -c disable'' will probably be enough. The general idea seems to be: with no -d or -e, show only enabled commands; with just -d, show disabled commands; with both -d and -e, show all. -- Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug with "compctl -L" in 3.0.1 1996-11-22 11:08 ` Peter Stephenson @ 1996-11-22 15:06 ` Zoltan Hidvegi 1996-11-22 15:50 ` Peter Stephenson 0 siblings, 1 reply; 4+ messages in thread From: Zoltan Hidvegi @ 1996-11-22 15:06 UTC (permalink / raw) To: Peter Stephenson; +Cc: fclim, zsh-workers Peter Stephenson wrote: > Fung-Chai Lim wrote: > > Hi, > > > > Although I did a ``compctl -e disable'', ``compctl -L disable'' > > returns ``compctl disable''. So does ``compctl''. This bug > > is in both versions 3.0.0 and 3.0.1. > > The manual page says -e has no effect without -d, so on its own it's > completely ignored and not even stored: you would need -de (I don't > know why it was done like that). However, since its function is to Because it is the default. The manual says: -e Without -d this option has no effect. Otherwise this can be combined with -F, -B, -w, -a, -R and - G to get names of functions, builtins, reserved words or aliases even if they are disabled. It may be changed to -e combined with -F, -B ... lists enabled ... but that's the default unless -d is also given. So in fact it has no effect without -d. Zoltan ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug with "compctl -L" in 3.0.1 1996-11-22 15:06 ` Zoltan Hidvegi @ 1996-11-22 15:50 ` Peter Stephenson 0 siblings, 0 replies; 4+ messages in thread From: Peter Stephenson @ 1996-11-22 15:50 UTC (permalink / raw) To: Zsh hackers list Zoltan Hidvegi wrote: > It may be changed to -e combined with -F, -B ... lists enabled ... but > that's the default unless -d is also given. So in fact it has no effect > without -d. I see the point now. I think the manual page would be clearer if it mentioned it was the default. *** Doc/zshcompctl.man~ Mon Jul 22 19:53:09 1996 --- Doc/zshcompctl.man Fri Nov 22 16:48:48 1996 *************** *** 147,156 **** functions, builtins, reserved words or aliases. .TP \-\fBe\fP ! Without \-\fBd\fP this option has no effect. Otherwise this ! can be combined with \-\fBF\fP, \-\fBB\fP, \-\fBw\fP, ! \-\fBa\fP, \-\fBR\fP and \-\fBG\fP to get names of functions, ! builtins, reserved words or aliases even if they are disabled. .TP \-\fBo\fP Names of shell options (see the zshoptions manual page). --- 147,157 ---- functions, builtins, reserved words or aliases. .TP \-\fBe\fP ! This option (to show enabled commands) is in effect by default, but ! may be combined with \-\fBd\fP; \-\fBde\fP in combination with ! \-\fBF\fP, \-\fBB\fP, \-\fBw\fP, \-\fBa\fP, \-\fBR\fP and \-\fBG\fP ! will complete names of functions, builtins, reserved words or aliases ! whether or not they are disabled. .TP \-\fBo\fP Names of shell options (see the zshoptions manual page). -- Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-11-22 16:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1996-11-22 10:40 bug with "compctl -L" in 3.0.1 Fung-Chai Lim 1996-11-22 11:08 ` Peter Stephenson 1996-11-22 15:06 ` Zoltan Hidvegi 1996-11-22 15:50 ` Peter Stephenson
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).