blob: 350e56a7fd57b6112d7f7ef3b7efa34cc06f26b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|