Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Let run-help filter cmd_args before calling run-help-<command> (was Re: [RFC][PATCH] Try calling command with help flags in run-help)

On Thu, Jun 3, 2021, at 5:26 PM, Marlon Richert wrote:
> On Thu, Jun 3, 2021 at 7:34 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > Stupid example, but:
> >
> > % ssh -- localhost date
> >
> > Without the patch, run-help displays help for the "date" command.
> > With it, help for "ssh".
> That's weird. For me, it gets help for 'ssh', both before and after
> the patch (on commit bd328a2).

Same for me, on the 5.8 release.

> > or some commands that have git-style sub-commands.
> My patch actually fixes an annoying case with 'run-help git'. Try
> pressing ^[h on, for example, 'git -C /path/to/zsh log'. Without my
> patch, it gives
> % run-help git
> git is /usr/bin/git
> error: invalid key: alias.-C
> No manual entry for git--C
> With my patch, it correctly displays help for 'git log'.

This already works correctly for me on the 5.8 release, but I don't
have any zsh or git aliases configured.


Messages sorted by: Reverse Date, Date, Thread, Author