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

Re: [PATCH] t5562: avoid non-portable "export FOO=bar" construct

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jul 29, 2018, 15:32 UTC
Message-ID
<da1bba33-b2c4-08b4-60f9-d545da56882a@ramsayjones.plus.com>
In-Reply-To
<CAPig+cSCsOXi4e8idXwLo41rjDREvvtG5P_bNtEWybUbAZj9Hg@mail.gmail.com>
On 29/07/18 04:13, Eric Sunshine wrote:
Show 16 quoted lines
> On Sat, Jul 28, 2018 at 6:51 PM Ramsay Jones
> <ramsay@ramsayjones.plus.com> wrote:
>> Commit 6c213e863a ("http-backend: respect CONTENT_LENGTH for
>> receive-pack", 2018-07-27) adds a test which uses the non-portable
>> export construct. Replace it with "FOO=bar && export FOO" instead.
>>
>> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
>> ---
>> Could you please put this on top of the 'mk/http-backend-content-length'
>> branch. This test tickles the new "export FOO=bar" check, so the test
>> suite does not run otherwise.
> 
> The "export FOO=bar" check comes from 9968ffff0d (test-lint: detect
> 'export FOO=bar', 2013-07-08), so is not exactly new.
> 
> Perhaps you were thinking of [1] a0a630192d

Heh, yes you are obviously correct. Although 'thinking' might be being too generous! ;-)

[I can't even claim that it was late ... midnight is actually quite early for me!]

Show 8 quoted lines
> (t/check-non-portable-shell: detect "FOO=bar shell_func", 2018-07-13),
> when you wrote this, though it is not related to "export FOO=bar"
> detection.
> 
> The patch itself looks fine, by the way.
> 
> [1]: https://public-inbox.org/git/20180713055205.32351-5-sunshine@sunshineco.com/
> 
Thanks!

ATB, Ramsay Jones

Previous: Eric SunshineNext: Max Kirillov
Message 3 of 4 in “t5562: avoid non-portable "export FOO=bar" construct”
  1. t5562: avoid non-portable "export FOO=bar" constructRamsay Jones, Jul 28, 2018
  2. Eric SunshineJul 29, 2018
  3. Ramsay JonesJul 29, 2018
  4. Max KirillovJul 30, 2018

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.