diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-26 00:18:26 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:22 +0200 |
commit | 3193074f30ee1ef7906cdd7b69c968777d3b84c4 (patch) | |
tree | 06ea67022b87277c4e0f651b49bc3dac7e3cddbd /gnulib-local/tests | |
parent | c8f2ea6921a59b4ec0882773039f71f8b970bc9e (diff) | |
download | external_gettext-3193074f30ee1ef7906cdd7b69c968777d3b84c4.zip external_gettext-3193074f30ee1ef7906cdd7b69c968777d3b84c4.tar.gz external_gettext-3193074f30ee1ef7906cdd7b69c968777d3b84c4.tar.bz2 |
Redirect stderr into a pipe.
Diffstat (limited to 'gnulib-local/tests')
-rwxr-xr-x | gnulib-local/tests/test-term-ostream-xterm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnulib-local/tests/test-term-ostream-xterm b/gnulib-local/tests/test-term-ostream-xterm index 79e4f7f..3b4c691 100755 --- a/gnulib-local/tests/test-term-ostream-xterm +++ b/gnulib-local/tests/test-term-ostream-xterm @@ -4,7 +4,9 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles out" -TERM=xterm ./test-term-ostream > out +# The redirection of stderr into a pipe avoids the output of padding bytes +# (unnecessary NUL bytes after escape sequences) on some systems. +(TERM=xterm ./test-term-ostream > out) 2>&1 | cat 1>&2 # There are several variants of the "xterm" terminal description floating # around, each with a different sgr0 escape sequence. Use "infocmp -l -1 xterm" |