From 9d6f220cc8ffbd71b4c68765b52c3a7c41dd729b Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 14 Jul 2007 01:05:43 -0700 Subject: Remove useless uses of cat, and replace with filename arguments Replace uses of cat that do nothing but writing the contents of a single file to another command via pipe. [jc: Original patch from Josh was somewhat buggy and rewrote "cat $file | wc -l" to "wc -l $file", but this one should be Ok.] Signed-off-by: Junio C Hamano --- git-ls-remote.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-ls-remote.sh') diff --git a/git-ls-remote.sh b/git-ls-remote.sh index 3671f3433e..b7e5d04584 100755 --- a/git-ls-remote.sh +++ b/git-ls-remote.sh @@ -82,7 +82,7 @@ rsync://* ) (cd $tmpdir && find refs -type f) | while read path do - cat "$tmpdir/$path" | tr -d '\012' + tr -d '\012' <"$tmpdir/$path" echo " $path" done && rm -fr $tmpdir -- cgit v1.3-5-g9baa