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 2:46 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> 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.

The run-help-ssh function isn't actually in the distribution anywhere
except as an example in the doc.  You have to copy-paste it into your
shell before attempting run-help.




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