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

Re: [PATCH] t0000: check whether the shell supports the "local" keyword

From
Jacob Keller <jacob.keller@gmail.com>
Date
Oct 26, 2017, 08:40 UTC
Message-ID
<CA+P7+xoCKTaG9kV2T9YUHvagHVzD6v7A=neLzF3Qj1q8Fi0u-w@mail.gmail.com>
In-Reply-To
<CAPig+cTv4YW0m0PLH+UucEHjgQkbCsOunPrkKVDrPQXNkd=GAg@mail.gmail.com>
On Thu, Oct 26, 2017 at 1:28 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 15 quoted lines
> On Thu, Oct 26, 2017 at 4:18 AM, Michael Haggerty <mhagger@alum.mit.edu> wrote:
>> Add a test balloon to see if we get complaints from anybody who is
>> using a shell that doesn't support the "local" keyword. If so, this
>> test can be reverted. If not, we might want to consider using "local"
>> in shell code throughout the git code base.
>
> I would guess that the number of people who actually run the Git test
> suite is microscopic compared to the number of people who use Git
> itself. It is not clear, therefore, that lack of reports of failure of
> the new test would imply that "local" can safely be used throughout
> the Git code base. At best, it might indicate that "local" can be used
> in the tests.
>
> Or, am I missing something?
>

I don't think you're missing anything. I think the idea here is: "do any users who actively run the test suite care if we start using local". I don't think the goal is to allow use of local in non-test suite code. At least, that's not how I interpreted it.

Thus it's fine to be only as part of a test and see if anyone complains, since the only people affected would be those which actually run the test suite...

Changing our requirement for regular shell scripts we ship seems a lot trickier to gauge.

Thanks, Jake

Previous: Eric SunshineNext: Michael Haggerty
Message 3 of 6 in “t0000: check whether the shell supports the "local" keyword”
  1. t0000: check whether the shell supports the "local" keywordMichael Haggerty, Oct 26, 2017
  2. Eric SunshineOct 26, 2017
  3. Jacob KellerOct 26, 2017
  4. Michael HaggertyOct 26, 2017
  5. Junio C HamanoOct 27, 2017
  6. Jeff KingOct 30, 2017

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.