1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-07 20:31:05 +01:00
zsh/Functions
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
..
Calendar 31422: better heuristic for timestamps in age function 2013-05-29 19:20:12 +01:00
Chpwd 29644: work around _describe bug, plus cosmetic tweaks 2011-08-03 20:57:32 +00:00
Compctl cleanup after function move 2001-04-02 14:36:36 +00:00
Example 24242: unify top lines as #!/bin/zsh (followed by options). 2007-12-13 22:20:58 +00:00
Exceptions 21779 plus unposted catch change: exception improvementss 2005-09-28 15:26:44 +00:00
MIME Missed file. 2011-11-20 16:05:12 +00:00
Misc 31634: run-help compat with alias to noglob/nocorrect 2013-08-07 04:11:56 -04:00
Newuser unposted: tweak newline placement. 2010-08-10 18:57:43 +00:00
Prompts 30468: prompt_fade_setup: add missing $ 2012-05-14 15:24:20 +00:00
TCP 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
VCS_Info 31485: vcs_info, git: Avoid error messages for `guilt' users 2013-06-18 09:16:59 +02:00
Zftp 30461, 30462 (tweaked): add missing local for match, mbegin and mend 2012-05-02 13:09:37 +00:00
Zle 31222: Stop {up,down}-line-or-beginning-search from triggering warn_create_global 2013-04-05 21:05:54 +02:00
.cvsignore unposted: cvsignore VIM *.swp files 2003-05-05 06:14:49 +00:00
.distfiles Fix distribution files 2000-12-05 14:39:58 +00:00
README.zftp

The Zftp directory contains a set of functions acting as a front end to the
zftp command, provided as an add-on module.  They allow you to perform FTP
tasks from within the shell using as many of the shell's own facilities
as possible.  For more information, see the zshzftpsys manual page.