Thread (204 messages) 204 messages, 5 authors, 2021-07-14

Re: [PATCH v8 03/15] t1092: replace incorrect 'echo' with 'cat'

From: Bagas Sanjaya <hidden>
Date: 2021-07-14 00:02:54

On 13/07/21 00.55, Derrick Stolee via GitGitGadget wrote:
From: Derrick Stolee <redacted>

This fixes the test data shape to be as expected, allowing rename
detection to work properly now that the 'larger-content' file actually
has meaningful lines.
What's the connection with s/echo/cat/ ?
quoted hunk ↗ jump to hunk
@@ -40,7 +40,7 @@ test_expect_success 'setup' '
  		done &&
  
  		git checkout -b rename-base base &&
-		echo >folder1/larger-content <<-\EOF &&
+		cat >folder1/larger-content <<-\EOF &&
  		matching
  		lines
  		help
OK, because to write multi-line file in scripts one must use cat, while 
echo can only write single line.

-- 
An old man doll... just what I always wanted! - Clara
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help