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

Re: [PATCH 2/3] vimdiff: add tool documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 8, 2021, 19:08 UTC
Message-ID
<xmqqfss6v51a.fsf@gitster.g>
In-Reply-To
<CAJDDKr4icrigRO-2S_HVdY7+W0EGJ8XBn5dD=O-qy1tXym4u8w@mail.gmail.com>
David Aguilar <davvid@gmail.com> writes:
Show 7 quoted lines
>     (diff_mode && ... || merge_cmd_help ...) |
>     while IFS= read -r line
>     do
>        ...
>     done
>
> How come we have to unset IFS here?

We are taking the input into a single variable "line", so what are we splitting with IFS anyway?

In any case, thanks for spotting bash-isms to avoid. We started allowing "local", I think, at least in the tests, but otherwise many bash-only things like "<(process)" redirection and "${substring:4}" substitution are simply no-no.

Previous: Eric SunshineNext: Fernando Ramos
Message 8 of 9 in “vimdiff: new layout option + docs”
  1. 0/3 vimdiff: new layout option + docsFernando Ramos, Nov 4, 2021
  2. 1/3 vimdiff: new implementation with layout supportFernando Ramos, Nov 4, 2021
  3. David AguilarNov 7, 2021
  4. Eric SunshineNov 8, 2021
  5. 2/3 vimdiff: add tool documentationFernando Ramos, Nov 4, 2021
  6. David AguilarNov 7, 2021
  7. Eric SunshineNov 8, 2021
  8. Junio C HamanoNov 8, 2021
  9. 3/3 vimdiff: remove deprecated {,g,n}vimdiff{1,2,3} variantsFernando Ramos, Nov 4, 2021

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.