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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 27, 2009, 20:05 UTC
Message-ID
<7vwsbbir1j.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.2.00.0902271216090.19082@suse104.zenez.com>
Boyd Lynn Gerber <gerberb@zenez.com> 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?
Previous: Johannes SchindelinNext: Boyd Lynn Gerber
Message 5 of 7 in “git-1.6.2-rc2 problems on t4034-diff-words.sh”
  1. Boyd Lynn GerberFeb 27, 2009
  2. Johannes SchindelinFeb 27, 2009
  3. Boyd Lynn GerberFeb 27, 2009
  4. Johannes SchindelinFeb 27, 2009
  5. Junio C HamanoFeb 27, 2009
  6. Boyd Lynn GerberFeb 27, 2009
  7. Boyd Lynn GerberFeb 27, 2009

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.