path: root/t/
diff options
authorRamsay Jones <>2008-08-26 17:52:57 (GMT)
committerJunio C Hamano <>2008-08-26 23:25:30 (GMT)
commit2b8437321901cf1559527090f5a475f4924031e5 (patch)
tree539a94cfd77d589de79d2f276cd2b349093dfe9f /t/
parentd47fb8b099d38cde7d3b27b44cc86cd720284d39 (diff)
Suppress some bash redirection error messages
In particular, when testing if the filesystem allows tabs in filenames, bash issues an error something like: ./ pathname with HT: No such file or directory which is caused by the failure of the (stdout) redirection, since the file cannot be created. In order to suppress the error message, you must redirect stderr to /dev/null, *before* the stdout redirection on the command-line. Also, remove a redundant filesystem check from the begining of the test and standardise the "test skipped" message to 'say' on exit. Signed-off-by: Ramsay Jones <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index 0574ef1..db46d53 100755
--- a/t/
+++ b/t/
@@ -21,7 +21,7 @@ cat >"$p0" <<\EOF
3. A quick brown fox jumps over the lazy cat, oops dog.
-cat >"$p1" "$p0"
+cat 2>/dev/null >"$p1" "$p0"
echo 'Foo Bar Baz' >"$p2"
test -f "$p1" && cmp "$p0" "$p1" || {