summaryrefslogtreecommitdiffstats
path: root/src/kash/tests/redirect-1
diff options
context:
space:
mode:
Diffstat (limited to 'src/kash/tests/redirect-1')
-rwxr-xr-xsrc/kash/tests/redirect-118
1 files changed, 18 insertions, 0 deletions
diff --git a/src/kash/tests/redirect-1 b/src/kash/tests/redirect-1
new file mode 100755
index 0000000..350e56a
--- /dev/null
+++ b/src/kash/tests/redirect-1
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Redirect output from a builtin command.
+
+. ${KASH_TEST_DIR}/common-include.sh
+
+TMPFILE="/tmp/redirect-1.$$.tmp"
+
+echo 1 > $TMPFILE
+VAR=`$CMD_CAT $TMPFILE`
+$CMD_RM -f $TMPFILE
+if test "$VAR" != "1"; then
+ echo "redirect-1: FAILURE - VAR=$VAR"
+ exit 1
+fi
+echo "redirect-1: SUCCESS"
+exit 0
+