1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00
Commit graph

20 commits

Author SHA1 Message Date
Peter Stephenson
9503b161ab 32031 plus missed _run_help: get helpfiles install path corect in functions 2013-11-23 17:44:12 +00:00
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
Peter Stephenson
10c2f225fd c.f. users/15202: use "autoload -Uz" consistently 2010-07-28 13:33:52 +00:00
Peter Stephenson
46bad169a8 27492 based on Jörg Sommer: 27473: fix run-help alias problem. 2009-12-16 11:07:09 +00:00
Peter Stephenson
dfabf50cf1 27305: fix GNU man option handling in run-help 2009-06-05 11:18:01 +00:00
Peter Stephenson
7e304940e5 unposted: back off 26862 2009-04-25 20:30:20 +00:00
Peter Stephenson
0c11cb5b47 Greg: 26862: remove unnecessary print 2009-04-21 16:05:34 +00:00
Clint Adams
80bb48a400 26202: show zshmodules(1) for echotc, echoti, sched, zprof, zpty, zsocket, zstyle, and ztcp builtins as well. 2008-12-30 05:40:55 +00:00
Bart Schaefer
e4ae98949c 25814: quote arguments to "eval". 2008-10-10 09:53:22 +00:00
Clint Adams
7e86f2da31 25823: bring up zshcontrib man page if run-help is run on run-help and run-help is a function. 2008-10-07 08:07:04 +00:00
Bart Schaefer
7a678d803c 24364: local assignment to HELPDIR with a default location. 2008-01-13 17:37:21 +00:00
Clint Adams
e3d69e9b36 24349: add comment about HELPDIR to assist replacement in Debian build. 2008-01-04 04:38:03 +00:00
Bart Schaefer
66742c6045 24332, 24333: Improvements to run-help suggested by J.Sommer. 2007-12-31 22:13:46 +00:00
Clint Adams
75c0f5cde8 24242: unify top lines as #!/bin/zsh (followed by options). 2007-12-13 22:20:58 +00:00
Peter Stephenson
38f01e72ea 22874: run-help unquoting wasn't consistent 2006-10-15 17:30:13 +00:00
Peter Stephenson
2b281e741c users/9604: enhance run-help to strip quotes 2005-11-01 18:25:05 +00:00
Sven Wischnowsky
3d7263ff67 after-move cleanup 2001-04-02 13:04:04 +00:00
Sven Wischnowsky
3623212c0c moved to ./Functions/Misc/run-help 2001-04-02 12:27:31 +00:00
Clint Adams
336542eba2 10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements 2000-04-14 15:42:10 +00:00
Tanaka Akira
fcd7cd1cfa Initial revision 1999-06-08 09:26:01 +00:00