summaryrefslogtreecommitdiff
path: root/Functions/Misc/run-help
AgeCommit message (Collapse)AuthorFilesLines
2023-05-1051593: improve search for command name after skipping prefix assignmentsBart Schaefer1-3/+3
This is aimed mostly at use of run-help as a standalone function rather than as a widget. When run-help is invoked outside widget context, there's no source line to search for the original command name, so this attempts searching the arguments.
2023-03-1351572: fix "shift" error when running standaloneBart Schaefer1-3/+3
2021-09-0649218: run-help filters cmd_args before calling run-help-<command>Marlon Richert1-6/+9
2013-11-2332031 plus missed _run_help: get helpfiles install path corect in functionsPeter Stephenson1-1/+1
2013-08-0731634: run-help compat with alias to noglob/nocorrectPhil Pennock1-0/+4
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.
2010-07-28c.f. users/15202: use "autoload -Uz" consistentlyPeter Stephenson1-1/+1
2009-12-1627492 based on Jörg Sommer: 27473: fix run-help alias problem.Peter Stephenson1-3/+8
2009-06-0527305: fix GNU man option handling in run-helpPeter Stephenson1-3/+2
2009-04-25unposted: back off 26862Peter Stephenson1-0/+1
2009-04-21Greg: 26862: remove unnecessary printPeter Stephenson1-1/+0
2008-12-3026202: show zshmodules(1) for echotc, echoti, sched, zprof, zpty, zsocket, ↵Clint Adams1-1/+1
zstyle, and ztcp builtins as well.
2008-10-1025814: quote arguments to "eval".Bart Schaefer1-1/+1
2008-10-0725823: bring up zshcontrib man page if run-help is run on run-help and ↵Clint Adams1-0/+1
run-help is a function.
2008-01-1324364: local assignment to HELPDIR with a default location.Bart Schaefer1-2/+2
2008-01-0424349: add comment about HELPDIR to assist replacement in Debian build.Clint Adams1-0/+2
2007-12-3124332, 24333: Improvements to run-help suggested by J.Sommer.Bart Schaefer1-1/+18
2007-12-1324242: unify top lines as #!/bin/zsh (followed by options).Clint Adams1-1/+1
2006-10-1522874: run-help unquoting wasn't consistentPeter Stephenson1-0/+3
2005-11-01users/9604: enhance run-help to strip quotesPeter Stephenson1-1/+8
2001-04-02after-move cleanupSven Wischnowsky1-0/+88
2001-04-02moved to ./Functions/Misc/run-helpSven Wischnowsky1-88/+0
2000-04-1410764: run-help improvements10764: run-help improvements10764: run-help ↵Clint Adams1-9/+25
improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements10764: run-help improvements
1999-06-08Initial revisionTanaka Akira1-0/+72