1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00
zsh/Functions/Misc
Phil Pennock 180c4c049c 31634: run-help compat with alias to noglob/nocorrect
Given `alias fetch='noglob fetch'`, without this change `run-help fetch`
recurses to invoke itself on the noglob command, bringing up the help
for noglob.  Similarly for nocorrect.  Thus the user would have to quit
out of the pager, then avoid quitting out of the loop, so that they can
go into the second iteration and see the help for the second instance
found by `whence -a`, which happens to be the target of the alias.
With common pagers, that's thus 'q', 'not-q'.  Somewhat frustrating.

Without this change, `alias foo='noglob bar'` where `foo` is not
otherwise a command would _never_ show the help for `bar`, since it only
showed the help for `noglob` and there was no second line of whence
output to trigger the second pass.

With this change, aliases to `noglob|nocorrect` of a command somewhat
ignore the presence of that precommand modifier; if a command is aliased
to `noglob $itself`, then the result is that the first line of whence
output is shown, no pager is used, the user can immediately see a prompt
to continue and press something other-than-q to see the help for the
command.

If given `alias foo='noglob bar'` then `run-help foo` will immediately
show the help for bar.

This behaviour was chosen to be consistent with the existing alias
support, but just working better with the precommand modifier.
2013-08-07 04:11:56 -04:00
..
.distfiles Jérôme Pouiller: 28351: new help functions 2010-10-18 09:33:42 +00:00
add-zsh-hook unposted (30090): add -h (help) and -L (list extant hooks) options. 2012-03-01 03:35:49 +00:00
allopt Use set -o in listalloptions to avoid kshoptionprint 2005-07-10 17:17:58 +00:00
checkmail 24242: unify top lines as #!/bin/zsh (followed by options). 2007-12-13 22:20:58 +00:00
colors 28758: make `colors' function work with non-default option sets 2011-02-15 09:28:54 +00:00
getjobs Update a comment. 2001-04-11 22:24:32 +00:00
harden attempt to remove executable permission, part 3 2007-07-25 20:15:38 +00:00
is-at-least 24298: Tonguc Yumruk: emulate -L consistency 2007-12-19 20:06:16 +00:00
mere fix for IRIX 2001-11-06 15:14:11 +00:00
nslookup (14602) 2001-05-31 08:18:36 +00:00
promptnl users/17134: avoid bad math error 2012-06-16 04:30:35 +00:00
regexp-replace unposted: return status 1 if no replacement 2010-01-19 13:13:56 +00:00
relative 18472: spelling corrections 2003-04-25 11:18:50 +00:00
run-help 31634: run-help compat with alias to noglob/nocorrect 2013-08-07 04:11:56 -04:00
run-help-git unposted: remove shebang line. 2008-02-07 02:07:59 +00:00
run-help-openssl Jérôme Pouiller: 28351: new help functions 2010-10-18 09:33:42 +00:00
run-help-p4 unposted: new run-help-p4 2009-12-16 12:11:56 +00:00
run-help-sudo Jérôme Pouiller: 28351: new help functions 2010-10-18 09:33:42 +00:00
run-help-svk 24332, 24333: Improvements to run-help suggested by J.Sommer. 2007-12-31 22:13:46 +00:00
run-help-svn 24332, 24333: Improvements to run-help suggested by J.Sommer. 2007-12-31 22:13:46 +00:00
sticky-note 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
tetris 25276: use autoload -z for zsh-autoload functions 2008-07-11 19:12:22 +00:00
xtermctl 25276: use autoload -z for zsh-autoload functions 2008-07-11 19:12:22 +00:00
zargs 30388, 30389 (Stephane): zargs: handle zero-length arguments. 2012-04-12 18:45:59 +00:00
zcalc 31155: minor extra zcalc features and documentation 2013-03-17 20:52:55 +00:00
zed users/14752: add #! line to zed 2010-01-29 21:44:54 +00:00
zkbd unposted (users/16697): use a better output file name when the DISPLAY 2012-03-01 03:36:48 +00:00
zmathfuncdef 26973: zmathfuncdef enhancements 2009-05-19 15:33:24 +00:00
zmv 31503: zmv improvements for user-specified programs. 2013-07-03 12:46:02 +01:00
zrecompile unposted: change "mv" to "mv -f" when backing up .zwc files in zrecompile 2004-03-31 16:48:37 +00:00
zstyle+ spelling corrections 2001-05-29 17:54:08 +00:00
ztodo Alexey: users/14588: ztodo function and completion 2009-11-22 19:17:32 +00:00