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

Re: [PATCH 2/2] t0024: refactor to have single command per line

From
Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Date
Jan 19, 2024, 03:40 UTC
Message-ID
<CYIDCZPQN2H1.1ET0CTP07NMYR@gmail.com>
In-Reply-To
<xmqqfryunsd1.fsf@gitster.g>
On Fri Jan 19, 2024 at 4:48 AM IST, Junio C Hamano wrote:
Show 15 quoted lines
> Ghanshyam Thakkar <shyamthakkar001@gmail.com> writes:
> > -	( mkdir untarred && cd untarred && "$TAR" -xf ../test.tar ) &&
> > +	mkdir untarred &&
> > +	(
> > +		cd untarred &&
> > +		"$TAR" -xf ../test.tar
> > +	) &&
>
> I think we assume "$TAR" is modern enough to know about the "C"
> option (see t/t5004-archive-corner-cases.sh), so
>
> 	mkdir untarred &&
> 	"$TAR" Cxf untarred test.tar
>
> without even a subshell may be sufficient.

I suppose '"$TAR" Cxf untarred test.tar' is not a valid syntax on alpine, since it was breaking CI.

Instead changed it to '"$TAR" xf test.tar -C untarred' in v3, which is how it's written in t/t5004-archive-corner-cases.sh, which passes CI.

Previous: Ghanshyam ThakkarNext: Junio C Hamano
Message 5 of 10 in “t0024: avoid losing exit status to pipes”
  1. 1/2 t0024: avoid losing exit status to pipesGhanshyam Thakkar, Jan 18, 2024
  2. 2/2 t0024: refactor to have single command per lineGhanshyam Thakkar, Jan 18, 2024
  3. Junio C HamanoJan 18, 2024
  4. Ghanshyam ThakkarJan 19, 2024
  5. Ghanshyam ThakkarJan 19, 2024
  6. Junio C HamanoJan 18, 2024
  7. 1/2 t0024: avoid losing exit status to pipesGhanshyam Thakkar, Jan 19, 2024
  8. 2/2 t0024: style fixGhanshyam Thakkar, Jan 19, 2024
  9. 1/2 t0024: avoid losing exit status to pipesGhanshyam Thakkar, Jan 19, 2024
  10. 2/2 t0024: style fixGhanshyam Thakkar, Jan 19, 2024

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.