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
Whit Armstrong <armstrong.whit@gmail.com>
Date
Mar 11, 2008, 17:58 UTC
Message-ID
<8ec76080803111058i19d3ae42g87366b31f3df4045@mail.gmail.com>
In-Reply-To
<20080311174045.GB14687@sigill.intra.peff.net>
works great.  thanks.
running rest of test suite now.
On Tue, Mar 11, 2008 at 1:40 PM, Jeff King <peff@peff.net> wrote:
Show 43 quoted lines
> On Tue, Mar 11, 2008 at 01:35:37PM -0400, Jeff King wrote:
>
>  > 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'
>
>  And here it is in patch form.
>
>  -- >8 --
>  t0021: tr portability fix for Solaris
>
>  Solaris' /usr/bin/tr doesn't seem to like multiple character
>  ranges in brackets (it simply prints "Bad string"). Instead,
>  let's just enumerate the transformation we want.
>
>  Signed-off-by: Jeff King <peff@peff.net>
>  ---
>   t/t0021-conversion.sh |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
>  diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh
>  index cb86029..8fc39d7 100755
>  --- a/t/t0021-conversion.sh
>  +++ b/t/t0021-conversion.sh
>  @@ -5,7 +5,9 @@ test_description='blob conversion via gitattributes'
>   . ./test-lib.sh
>
>   cat <<\EOF >rot13.sh
>
> -tr '[a-zA-Z]' '[n-za-mN-ZA-M]'
>  +tr \
>  +  'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \
>  +  'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'
>   EOF
>   chmod +x rot13.sh
>
>  --
>  1.5.4.3.621.g34987
>
>
Previous: Jeff KingNext: Junio C Hamano
Message 9 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.