Re: shell compatibility issues with SunOS 5.10
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- May 7, 2009, 00:22 UTC
- Message-ID
- <vmGwFm-7sqyeL1D7WrJ-qBXW02LwMMHQ7rLy7XbfdUutAtORXrswbw@cipher.nrlssc.navy.mil>
- In-Reply-To
- <fcaeb9bf0905061615v2c1b1b4fmc6ade674aabf9586@mail.gmail.com>
Nguyen Thai Ngoc Duy wrote:
Show 19 quoted lines
> On Thu, May 7, 2009 at 4:14 AM, Brandon Casey <casey@nrlssc.navy.mil> wrote: >> Nguyen Thai Ngoc Duy wrote: >>> Hi, >>> >>> I did "make test" on a SunOS 5.10 and it failed. >>> diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh >>> index b68ab11..61ccdee 100755 >>> --- a/t/t4200-rerere.sh >>> +++ b/t/t4200-rerere.sh >>> @@ -57,7 +57,7 @@ test_expect_success 'conflicting merge' ' >>> test_must_fail git merge first >>> ' >>> >>> -sha1=$(sed -e 's/ .*//' .git/MERGE_RR) >>> +sha1=$(cut -f 1 .git/MERGE_RR) >> Are you using /bin/sed? I think it has a problem with tabs. > > Yes I use /bin/sed. if /usr/xpg4/bin/sed is recommended, test-lib.sh > should set up PATH automatically, I think.
/usr/xpg*/bin is where Sun puts the POSIX compliant versions of standard system utilities.
The binaries in /bin/ retain their historical Solaris behavior.
Check out the XPG4 man page on a sun.
Not sure about the best route to take here. /usr/xpg4/bin should probably be in the user's PATH when git is executed too.
-brandon