{"thread":{"id":"7809","subject":"[PATCH] Fix tail option problem in test","startedAt":"2007-04-23T23:56:58Z","lastAt":"2007-04-24T05:02:55Z","messageCount":4,"participants":["A Large Angry SCM","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"40262","messageId":"462D47CA.7010806@gmail.com","threadId":"7809","inReplyTo":null,"subject":"[PATCH] Fix tail option problem in test","fromName":"A Large Angry SCM","fromEmail":"gitzilla@gmail.com","sentAt":"2007-04-23T23:56:58Z","receivedAt":"2007-04-23T23:56:58Z","isPatch":true,"sender":{"key":"gitzilla@gmail.com","avatar":"https://gravatar.com/avatar/354625c442439908ff3dd99757dee330e29e9df7847472384faf7a00add247fb?d=mp&s=160"},"body":"The tail command on my system complains:\n\n\ttail: cannot open `8192' for reading: No such file or directory\n\nif there is any whitespace between the '-c' option and the byte count.\n\nSigned-off-by: A Large Angry SCM <Gitzilla@gmail.com>\n---\n\n t/t5302-pack-index.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh\nindex 232e5f1..b7870a8 100755\n--- a/t/t5302-pack-index.sh\n+++ b/t/t5302-pack-index.sh\n@@ -16,7 +16,7 @@ test_expect_success \\\n          test-genrandom \"$i\" 8192 >>file_$i &&\n          git-update-index --add file_$i || return 1\n      done &&\n-     echo 101 >file_101 && tail -c 8192 file_100 >>file_101 &&\n+     echo 101 >file_101 && tail -c8192 file_100 >>file_101 &&\n      git-update-index --add file_101 &&\n      tree=`git-write-tree` &&\n      commit=`git-commit-tree $tree </dev/null` && {\n"},{"id":"40264","messageId":"7v4pn6d459.fsf@assigned-by-dhcp.cox.net","threadId":"7809","inReplyTo":"462D47CA.7010806@gmail.com","subject":"Re: [PATCH] Fix tail option problem in test","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-04-24T00:09:38Z","receivedAt":"2007-04-24T00:09:38Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"A Large Angry SCM <gitzilla@gmail.com> writes:\n\n> The tail command on my system complains:\n>\n> \ttail: cannot open `8192' for reading: No such file or directory\n>\n> if there is any whitespace between the '-c' option and the byte count.\n>\n> Signed-off-by: A Large Angry SCM <Gitzilla@gmail.com>\n> ---\n>\n>  t/t5302-pack-index.sh |    2 +-\n>  1 files changed, 1 insertions(+), 1 deletions(-)\n>\n> diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh\n> index 232e5f1..b7870a8 100755\n> --- a/t/t5302-pack-index.sh\n> +++ b/t/t5302-pack-index.sh\n> @@ -16,7 +16,7 @@ test_expect_success \\\n>           test-genrandom \"$i\" 8192 >>file_$i &&\n>           git-update-index --add file_$i || return 1\n>       done &&\n> -     echo 101 >file_101 && tail -c 8192 file_100 >>file_101 &&\n> +     echo 101 >file_101 && tail -c8192 file_100 >>file_101 &&\n>       git-update-index --add file_101 &&\n>       tree=`git-write-tree` &&\n>       commit=`git-commit-tree $tree </dev/null` && {\n\nI do not like using tail to do a byte-oriented thing like this\nto begin with.  How about using the plain old trustworthy and\nportable program, \"dd\", instead?\n"},{"id":"40268","messageId":"462D4F5D.7010605@gmail.com","threadId":"7809","inReplyTo":"7v4pn6d459.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH] Fix tail option problem in test","fromName":"A Large Angry SCM","fromEmail":"gitzilla@gmail.com","sentAt":"2007-04-24T00:29:17Z","receivedAt":"2007-04-24T00:29:17Z","isPatch":true,"sender":{"key":"gitzilla@gmail.com","avatar":"https://gravatar.com/avatar/354625c442439908ff3dd99757dee330e29e9df7847472384faf7a00add247fb?d=mp&s=160"},"body":"Junio C Hamano wrote:\n> A Large Angry SCM <gitzilla@gmail.com> writes:\n> \n>> The tail command on my system complains:\n>>\n>> \ttail: cannot open `8192' for reading: No such file or directory\n>>\n>> if there is any whitespace between the '-c' option and the byte count.\n>>\n>> Signed-off-by: A Large Angry SCM <Gitzilla@gmail.com>\n>> ---\n>>\n>>  t/t5302-pack-index.sh |    2 +-\n>>  1 files changed, 1 insertions(+), 1 deletions(-)\n>>\n>> diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh\n>> index 232e5f1..b7870a8 100755\n>> --- a/t/t5302-pack-index.sh\n>> +++ b/t/t5302-pack-index.sh\n>> @@ -16,7 +16,7 @@ test_expect_success \\\n>>           test-genrandom \"$i\" 8192 >>file_$i &&\n>>           git-update-index --add file_$i || return 1\n>>       done &&\n>> -     echo 101 >file_101 && tail -c 8192 file_100 >>file_101 &&\n>> +     echo 101 >file_101 && tail -c8192 file_100 >>file_101 &&\n>>       git-update-index --add file_101 &&\n>>       tree=`git-write-tree` &&\n>>       commit=`git-commit-tree $tree </dev/null` && {\n> \n> I do not like using tail to do a byte-oriented thing like this\n> to begin with.  How about using the plain old trustworthy and\n> portable program, \"dd\", instead?\n\nIt's not as easy to get the last X bytes of a file with dd.\n"},{"id":"40286","messageId":"7v8xcibc00.fsf@assigned-by-dhcp.cox.net","threadId":"7809","inReplyTo":"462D4F5D.7010605@gmail.com","subject":"Re: [PATCH] Fix tail option problem in test","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-04-24T05:02:55Z","receivedAt":"2007-04-24T05:02:55Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"A Large Angry SCM <gitzilla@gmail.com> writes:\n\n> It's not as easy to get the last X bytes of a file with dd.\n\nFair enough.\n"}]}