Last change
on this file since 2639 was 2305, checked in by bird, 16 years ago |
tests/redirect-3: oops.
|
-
Property svn:eol-style
set to
LF
-
Property svn:executable
set to
*
|
File size:
358 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # Redirect input to an external command.
|
---|
4 |
|
---|
5 | . ${KASH_TEST_DIR}/common-include.sh
|
---|
6 |
|
---|
7 | TMPFILE="/tmp/redirect-3.$$.tmp"
|
---|
8 |
|
---|
9 | echo 1 > $TMPFILE
|
---|
10 | echo 2 >> $TMPFILE
|
---|
11 | echo 3 >> $TMPFILE
|
---|
12 | VAR=`$CMD_SED -e '/2/!d' < $TMPFILE`
|
---|
13 | $CMD_RM -f $TMPFILE
|
---|
14 | if test "$VAR" != "2"; then
|
---|
15 | echo "redirect-3: FAILURE - VAR=$VAR."
|
---|
16 | exit 1
|
---|
17 | fi
|
---|
18 | echo "redirect-3: SUCCESS"
|
---|
19 | exit 0
|
---|
20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.