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

[PATCH] git-svn: t0001: workaround a heredoc bug in old versions of dash

From
EWEric Wong <normalperson@yhbt.net>
Date
May 30, 2006, 02:03 UTC
Message-ID
<11489546262736-git-send-email-normalperson@yhbt.net>
In-Reply-To
<20060529063543.GA8128@localdomain>

The dash installed on my Debian Sarge boxes don't seem to like <<'' as a heredoc starter. Recent versions of dash do not need this fix.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 contrib/git-svn/t/t0001-contrib-git-svn-props.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
edbca3e1b96747330a4b1459e914b07105b3bc44
diff --git a/contrib/git-svn/t/t0001-contrib-git-svn-props.sh b/contrib/git-svn/t/t0001-contrib-git-svn-props.sh
index 6fa7889..23a5a2a 100644
--- a/contrib/git-svn/t/t0001-contrib-git-svn-props.sh
+++ b/contrib/git-svn/t/t0001-contrib-git-svn-props.sh
@@ -20,9 +20,10 @@ a_empty_cr=
 a_empty_crlf=
 
 cd import
-	cat >> kw.c <<''
+	cat >> kw.c <<\EOF
 /* Make it look like somebody copied a file from CVS into SVN: */
 /* $Id: kw.c,v 1.1.1.1 1994/03/06 00:00:00 eric Exp $ */
+EOF
 
 	printf "Hello\r\nWorld\r\n" > crlf
 	a_crlf=`git-hash-object -w crlf`
-- 
1.3.2.g7d11
Previous: Eric WongNext: Eric Wong
Message 8 of 9 in “Tried to fix git-svn's handling of filenames with embedded '@'.”
  1. 0/1 Tried to fix git-svn's handling of filenames with embedded '@'.Seth Falcon, May 28, 2006
  2. 1/1 Tried to fix git-svn's handling of filenames with embedded '@'.Seth Falcon, May 28, 2006
  3. Junio C HamanoMay 28, 2006
  4. Eric WongMay 29, 2006
  5. Eric WongMay 29, 2006
  6. Seth FalconMay 29, 2006
  7. git-svn: compat fixes for older svn and dashEric Wong, May 30, 2006
  8. git-svn: t0001: workaround a heredoc bug in old versions of dashEric Wong, May 30, 2006
  9. git-svn: remove assertion that broke with older versions of svnEric Wong, May 30, 2006

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.