~emersion/mrsh

932f35a832512c1d76c161be012d77261b191b39 — Simon Ser 6 months ago b2530c2
test: add basic redir test
2 files changed, 12 insertions(+), 0 deletions(-)

M test/meson.build
A test/redir.sh
M test/meson.build => test/meson.build +1 -0
@@ 13,6 13,7 @@ test_files = [
	'loop.sh',
	'pipeline.sh',
	'readonly.sh',
	'redir.sh',
	'return.sh',
	'subshell.sh',
	'syntax.sh',

A test/redir.sh => test/redir.sh +11 -0
@@ 0,0 1,11 @@
#!/bin/sh

echo "to stdout"
uname

echo >&2 "stdout to stderr"
uname >&2

echo 2>&1 "stderr to stdout"
uname 2>&1
#(echo >&2 asdf) 2>&1