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

Re: [ANNOUNCE] Git 1.7.6.4

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 24, 2011, 03:50 UTC
Message-ID
<7vd3eqsinr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4850EB43-5CC7-4D33-90A8-1EDEE16ECAB7@bjhargrave.com>
BJ Hargrave <bj@bjhargrave.com> writes:
Show 17 quoted lines
> The test
>
>  invalid_ref "$(printf 'heads/foo\177')"
>
> was added to t1402-check-ref-format.sh. However sh on my RHEL 4 system
> does not handle the DEL (\177) character well in double quoted strings.
>
> sh-3.00$ echo $(printf 'hello\177') | hexdump -C
> 00000000  68 65 6c 6c 6f 7f 0a                              |hello..|
> 00000007
> sh-3.00$ echo "$(printf 'hello\177')" | hexdump -C
> 00000000  68 65 6c 6c 6f 0a                                 |hello.|
> 00000006
>
> The double quotes cause the DEL (\177) character to be discarded.
>
> Can this test be rewritten to avoid this apparent bug in sh on RHEL 4?

For older distros, I would prefer a workaround patch first tested by distro packaging people and then upstreamed.

Thanks.
Previous: BJ HargraveNext: Robin H. Johnson
Message 3 of 4 in “[ANNOUNCE] Git 1.7.6.4”
  1. Junio C HamanoSep 23, 2011
  2. BJ HargraveSep 24, 2011
  3. Junio C HamanoSep 24, 2011
  4. Robin H. JohnsonSep 24, 2011

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.