git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] cmd-list.perl: fix identifying man sections

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Sep 23, 2022, 11:42 UTC
Message-ID
<CAN0heSrnN4Vjcj6KDG+DZkZ7_GWz5dex2Qq0To6CGVH7_zux4Q@mail.gmail.com>
In-Reply-To
<220923.86fsgi4gl6.gmgdl@evledraar.gmail.com>
On Fri, 23 Sept 2022 at 10:53, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
>
> Thanks for the quick turn-around, this looks good to me in this form.
Thanks for reviewing.
> Now, having written and looked at this with fresh eyes this would be an
> even better & more logical thing to do:
Show 7 quoted lines
>                 open I, '<', "$name.txt" or die "No such file $name.txt";
>                 while (<I>) {
>         -               if (/^(?:git|scalar)[a-z0-9-]*\(([0-9])\)$/) {
>         +               if (/^\Q$name\E\(([0-9])\)$/) {
>                                 $mansection = $1;
>                                 next;
>                         }
Right, we know what we want there, so this does look reasonable.
> Anyway, this is more than good enough for now, thanks! There's also much
> bigger issues with the script, and we can leave that all aside from now
> (e.g. if it dies the Makefile doesn't report an error, ouch!).
Martin
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 5 of 10 in “cmd-list.perl: fix identifying man sections”
  1. cmd-list.perl: fix identifying man sectionsMartin Ågren, Sep 23, 2022
  2. Ævar Arnfjörð BjarmasonSep 23, 2022
  3. cmd-list.perl: fix identifying man sectionsMartin Ågren, Sep 23, 2022
  4. Ævar Arnfjörð BjarmasonSep 23, 2022
  5. Martin ÅgrenSep 23, 2022
  6. Junio C HamanoSep 23, 2022
  7. Jeff KingSep 23, 2022
  8. Martin ÅgrenSep 26, 2022
  9. Junio C HamanoSep 26, 2022
  10. Ævar Arnfjörð BjarmasonSep 26, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.