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)
- X-seq: zsh-workers 49222
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Marlon Richert <marlon.richert@xxxxxxxxx>
- Cc: Lawrence Velázquez <larryv@xxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: 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)
- Date: Fri, 30 Jul 2021 09:55:13 -0700
- Archived-at: <https://zsh.org/workers/49222>
- In-reply-to: <CAHLkEDu7+k=f=B=A0uLWTj0676VYM9fM_=RcB0e2sgeHPeULoA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDsDG7X9+oN8AowUoqcPU731tHALXJGvaqkxV8XnR2kULg@mail.gmail.com> <CAH+w=7Y1M-TkTJNb0q8LECy6-fViN=As5cn6KohneyeDLdPv4Q@mail.gmail.com> <CAHLkEDvhcTi-q-yKiwYAhyuSWTjB-mof0RCKqWyhmFrFQjPOsA@mail.gmail.com> <CAH+w=7YZVzbKde3NOaDxYSzJRwyWRTLc=RHOX4XATSBOT=Tvcw@mail.gmail.com> <CAHLkEDuPgBaNoGyu-io=0HKB1FxOpHGoHYUXHQSrwztMuEMVAw@mail.gmail.com> <CAH+w=7YVoGkNVETdPJkqDNGM8aN16=RL_yiUOWReX9DsJG-vNA@mail.gmail.com> <CAHLkEDuGay8dMt8t5buszWGiBg=p2tRAUBVF3B5OKcPjO=VF6g@mail.gmail.com> <3f494f65-cede-41f5-862f-cfd8424668ea@www.fastmail.com> <0f3f4217-44f6-4bf9-b2d2-2110ae10d40e@www.fastmail.com> <CAH+w=7bui37NHJLqSHDdbZwSEWZVD68aU3ReE6Z0wQ7hnOVZvw@mail.gmail.com> <CAHLkEDu7+k=f=B=A0uLWTj0676VYM9fM_=RcB0e2sgeHPeULoA@mail.gmail.com>
This one appears clean. Thanks.
On Thu, Jul 29, 2021 at 5:11 AM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
>
> On Wed, Jul 28, 2021 at 8:58 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > On Sun, Jul 18, 2021 at 11:46 AM Lawrence Velázquez <larryv@xxxxxxx> wrote:
> > >
> > > On Sun, Jun 20, 2021, at 2:01 PM, Lawrence Velázquez wrote:
> > > > On Sat, Jun 5, 2021, at 3:15 PM, Marlon Richert wrote:
> > > > > New patch here with test cases, plus a rewrite of run-help-git. All the
> > > > > tests succeed for both the new and old versions of the run-help-*
> > > > > functions (except for the old run-help-git, because the new
> > > > > run-help-git uses `git help` instead of `man`).
> > > > >
> > > > > Attachments:
> > > > > * 0001-Let-run-help-filter-cmd_args-before-calling-run-help.txt
> > > >
> > > > bump
> > >
> > > bump bump
> >
> > Nothing obviously wrong with the code patch, but one of the test cases
> > fails for me:
> >
> > --- /tmp/zsh.ztst.50384/ztst.out 2021-07-28 10:56:06.301935368 -0700
> > +++ /tmp/zsh.ztst.50384/ztst.tout 2021-07-28 10:56:06.301935368 -0700
> > @@ -1,2 +0,0 @@
> > -git is WHENCE:{git}
> > -GIT:{'help' 'git'}
> > Test ./Z03run-help.ztst failed: output differs from expected as shown above for:
> > BUFFER_STACK='git --exec-path'
> > Was testing: git with option
> > ./Z03run-help.ztst: test failed.
>
> Looks like I somehow managed to omit some lines from the tests in the
> patch. Here's a new patch, differing only in the `run-help git` tests:
Messages sorted by:
Reverse Date,
Date,
Thread,
Author