|
Last change
on this file since 3670 was 2285, checked in by bird, 17 years ago |
|
kash/tests: more tests.
|
-
Property svn:eol-style
set to
LF
|
|
File size:
344 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Pipes input from an builtin command thru an external one.
|
|---|
| 4 |
|
|---|
| 5 | . ${KASH_TEST_DIR}/common-include.sh
|
|---|
| 6 |
|
|---|
| 7 | TMPFILE="/tmp/pipe-1.$$.tmp"
|
|---|
| 8 |
|
|---|
| 9 | echo piped | $CMD_SED -e 's/piped/1/' > $TMPFILE
|
|---|
| 10 | VAR=`$CMD_CAT $TMPFILE`
|
|---|
| 11 | $CMD_RM -f $TMPFILE
|
|---|
| 12 | if test "$VAR" != "1"; then
|
|---|
| 13 | echo "pipe-1: FAILURE - VAR=$VAR"
|
|---|
| 14 | exit 1
|
|---|
| 15 | fi
|
|---|
| 16 | echo "pipe-1: SUCCESS"
|
|---|
| 17 | exit 0
|
|---|
| 18 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.