Re: git-1.6.2-rc2 problems on t4034-diff-words.sh

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git-1.6.2-rc2 problems on t4034-diff-words.sh

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:18

Boyd Lynn Gerber [off-list ref] writes:
Does the test suite use bash as it's shell?  I seem to have to use
bash now to run the test.  I do not remember having to use bash on
earlier 1.6.0
If your /bin/sh is not POSIX enough, you may be using a different shell
when building the scripted commands in the main Makefile by setting
SHELL_PATH.  The tests are supposed to use the same one as that.
I have to use bash to run the test or I get

$ ./t4034-diff-words.sh
./t4034-diff-words.sh: syntax error at line 52: `(' unexpected
The open parenthesis on line 52 is the one between h and 4 here:

    cat > expect <<\EOF
    <WHITE>diff --git a/pre b/post<RESET>
    <WHITE>index 330b04f..5ed8eff 100644<RESET>
    <WHITE>--- a/pre<RESET>
    <WHITE>+++ b/post<RESET>
    <BROWN>@@ -1,3 +1,7 @@<RESET>
    <RED>h(4)<RESET><GREEN>h(4),hh[44]<RESET>
    <RESET>
    a = b + c<RESET>

    <GREEN>aa = a<RESET>

    <GREEN>aeff = aeff * ( aaa )<RESET>
    EOF

Perhaps your shell has a broken here-text?

Re: git-1.6.2-rc2 problems on t4034-diff-words.sh

From: Boyd Lynn Gerber <hidden>
Date: 2016-06-15 22:46:18

On Fri, 27 Feb 2009, Junio C Hamano wrote:
Boyd Lynn Gerber [off-list ref] writes:
quoted
Does the test suite use bash as it's shell?  I seem to have to use
bash now to run the test.  I do not remember having to use bash on
earlier 1.6.0
If your /bin/sh is not POSIX enough, you may be using a different shell
when building the scripted commands in the main Makefile by setting
SHELL_PATH.  The tests are supposed to use the same one as that.
quoted
I have to use bash to run the test or I get

$ ./t4034-diff-words.sh
./t4034-diff-words.sh: syntax error at line 52: `(' unexpected
The open parenthesis on line 52 is the one between h and 4 here:

   cat > expect <<\EOF
   <WHITE>diff --git a/pre b/post<RESET>
   <WHITE>index 330b04f..5ed8eff 100644<RESET>
   <WHITE>--- a/pre<RESET>
   <WHITE>+++ b/post<RESET>
   <BROWN>@@ -1,3 +1,7 @@<RESET>
   <RED>h(4)<RESET><GREEN>h(4),hh[44]<RESET>
   <RESET>
   a = b + c<RESET>

   <GREEN>aa = a<RESET>

   <GREEN>aeff = aeff * ( aaa )<RESET>
   EOF

Perhaps your shell has a broken here-text?
On OpenServer 6.0.6 /u95/bin/sh /u95/bin/ksh /u95/bin/bash are POSIX 
compliant shells.  The /bin/ shells are the stand SCO has had finx XENIX. 
They use system 5v3.  POSIX is System 5v4.

Thanks,

-- 
Boyd Gerber [off-list ref] 801 849-0213
ZENEZ	1042 East Fort Union #135, Midvale Utah  84047

Re: git-1.6.2-rc2 problems on t4034-diff-words.sh

From: Boyd Lynn Gerber <hidden>
Date: 2016-06-15 22:46:18

On Fri, 27 Feb 2009, Boyd Lynn Gerber wrote:
On Fri, 27 Feb 2009, Junio C Hamano wrote:
quoted
Boyd Lynn Gerber [off-list ref] writes:
quoted
Does the test suite use bash as it's shell?  I seem to have to use
bash now to run the test.  I do not remember having to use bash on
earlier 1.6.0
If your /bin/sh is not POSIX enough, you may be using a different shell
when building the scripted commands in the main Makefile by setting
SHELL_PATH.  The tests are supposed to use the same one as that.
quoted
I have to use bash to run the test or I get

$ ./t4034-diff-words.sh
./t4034-diff-words.sh: syntax error at line 52: `(' unexpected
The open parenthesis on line 52 is the one between h and 4 here:

   cat > expect <<\EOF
   <WHITE>diff --git a/pre b/post<RESET>
   <WHITE>index 330b04f..5ed8eff 100644<RESET>
   <WHITE>--- a/pre<RESET>
   <WHITE>+++ b/post<RESET>
   <BROWN>@@ -1,3 +1,7 @@<RESET>
   <RED>h(4)<RESET><GREEN>h(4),hh[44]<RESET>
   <RESET>
   a = b + c<RESET>

   <GREEN>aa = a<RESET>

   <GREEN>aeff = aeff * ( aaa )<RESET>
   EOF

Perhaps your shell has a broken here-text?
On OpenServer 6.0.6 /u95/bin/sh /u95/bin/ksh /u95/bin/bash are POSIX 
compliant shells.  The /bin/ shells are the stand SCO has had finx XENIX. 
They use system 5v3.  POSIX is System 5v4.
That should have been OpenServer 6.0 MP4.

-- 
Boyd Gerber [off-list ref] 801 849-0213
ZENEZ	1042 East Fort Union #135, Midvale Utah  84047
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help