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

[PATCH] Fix tail option problem in test

From
A Large Angry SCM <gitzilla@gmail.com>
Date
Apr 23, 2007, 23:56 UTC
Message-ID
<462D47CA.7010806@gmail.com>
The tail command on my system complains:
	tail: cannot open `8192' for reading: No such file or directory
if there is any whitespace between the '-c' option and the byte count.
Signed-off-by: A Large Angry SCM <Gitzilla@gmail.com>
---
 t/t5302-pack-index.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh
index 232e5f1..b7870a8 100755
--- a/t/t5302-pack-index.sh
+++ b/t/t5302-pack-index.sh
@@ -16,7 +16,7 @@ test_expect_success \
          test-genrandom "$i" 8192 >>file_$i &&
          git-update-index --add file_$i || return 1
      done &&
-     echo 101 >file_101 && tail -c 8192 file_100 >>file_101 &&
+     echo 101 >file_101 && tail -c8192 file_100 >>file_101 &&
      git-update-index --add file_101 &&
      tree=`git-write-tree` &&
      commit=`git-commit-tree $tree </dev/null` && {
Next: Junio C Hamano
Message 1 of 4 in “Fix tail option problem in test”
  1. Fix tail option problem in testA Large Angry SCM, Apr 23, 2007
  2. Junio C HamanoApr 24, 2007
  3. A Large Angry SCMApr 24, 2007
  4. Junio C HamanoApr 24, 2007

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.