Suppress some bash redirection error messages
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 26 Aug 2008 17:52:57 +0000 (18:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Aug 2008 23:25:30 +0000 (16:25 -0700)
commit2b8437321901cf1559527090f5a475f4924031e5
tree539a94cfd77d589de79d2f276cd2b349093dfe9f
parentd47fb8b099d38cde7d3b27b44cc86cd720284d39
Suppress some bash redirection error messages

In particular, when testing if the filesystem allows tabs in
filenames, bash issues an error something like:

./t4016-diff-quote.sh: 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 t3902-quoted.sh test and standardise the "test skipped"
message to 'say' on exit.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3300-funny-names.sh
t/t3902-quoted.sh
t/t4016-diff-quote.sh