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

Re: Solaris test failure for git-1.5.4.4 -- t0021-conversion.sh

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 12, 2008, 04:11 UTC
Message-ID
<7vhcfc8tu7.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080311174045.GB14687@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
>> Looks like /usr/ucb/tr is OK with this, but /usr/bin/tr is not. Both
>> seem to handle the more verbose:
>> 
>> tr \
>>   'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \
>>   'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'

Besides tests, I think we have invocations of "tr" that Solaris people might want to audit in the real scripts. POSIX does not require [] around the strings, but when from-string and to-string are of the same length, having [] around them would not hurt (they transliterate to themselves) and that is the only reason why we tend to use [] form to help potential porters to ancient System V systems ;-)

filter-branch uses A-Z (BSD style) range which also is Kosher in POSIX but will break historical System V that requires [] around ranges.

bisect has "tr '[\012]' ' '" which I think we can get rid of by rewriting the users of the resulting string.

Previous: Whit ArmstrongNext: Jeff King
Message 10 of 13 in “Solaris test failure for git-1.5.4.4 -- t0021-conversion.sh”
  1. Whit ArmstrongMar 11, 2008
  2. Johannes SchindelinMar 11, 2008
  3. Johannes SixtMar 11, 2008
  4. David KastrupMar 11, 2008
  5. Asheesh LaroiaMar 11, 2008
  6. Whit ArmstrongMar 11, 2008
  7. Jeff KingMar 11, 2008
  8. Jeff KingMar 11, 2008
  9. Whit ArmstrongMar 11, 2008
  10. Junio C HamanoMar 12, 2008
  11. Jeff KingMar 12, 2008
  12. Jeff KingMar 12, 2008
  13. Johannes SchindelinMar 12, 2008

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.