t3404: use configured shell instead of /bin/sh
[gitweb.git] / test-sha1.sh
index 01bbb5782e05ff4da9be9e0b5b308b59e5f7c7e7..bf526c8f5e8649590da1bfd424e11a78c5621f6f 100755 (executable)
@@ -10,8 +10,8 @@ do
                {
                        test -z "$pfx" || echo "$pfx"
                        dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
-                       tr '[\0]' '[g]'
-               } | ./test-sha1
+                       tr '\000' 'g'
+               } | ./test-sha1 $cnt
        `
        if test "$expect" = "$actual"
        then
@@ -55,7 +55,7 @@ do
                {
                        test -z "$pfx" || echo "$pfx"
                        dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
-                       tr '[\0]' '[g]'
+                       tr '\000' 'g'
                } | sha1sum |
                sed -e 's/ .*//'
        `