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

Re: [PATCH] t3000 (ls-files -o): modernize style

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 11, 2010, 15:14 UTC
Message-ID
<20100711151432.GA1781@burratino>
In-Reply-To
<m3d3uul8pd.fsf@localhost.localdomain>
Jakub Narebski wrote:
> ... I don't think it is really needed.  There isn't anything there
> that can fail, and there isn't anything there that produces any
> output.

I should clarify. I wrote this patch as preparation to add some new tests to the same script. The new tests are not cooked yet, so I just sent the trivial part; there certainly is no urgent reason to apply it soon (though no reason I see not to apply it either).

A better explanation for the rationale would be "follow the modern style to make the script more readable and set a good example for future tests".

> BTW. do all sane shells that can be used to run test suite support
> '<<-' here-doc redirection operators?  Is it in POSIX?
Yes[1] and yes[2].

Thanks for looking it over. Jonathan

[1] $ git grep -l -F -e '<<-EO' -e '<<-\EO' origin/maint -- t | wc -l
    13
[2] http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_04
Previous: Ævar Arnfjörð Bjarmason
Message 4 of 4 in “t3000 (ls-files -o): modernize style”
  1. t3000 (ls-files -o): modernize styleJonathan Nieder, Jul 11, 2010
  2. Jakub NarebskiJul 11, 2010
  3. Ævar Arnfjörð BjarmasonJul 11, 2010
  4. Jonathan NiederJul 11, 2010

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.