VirtualBox

source: kBuild/trunk/src/kash/tests/redirect-3@ 2639

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
7TMPFILE="/tmp/redirect-3.$$.tmp"
8
9echo 1 > $TMPFILE
10echo 2 >> $TMPFILE
11echo 3 >> $TMPFILE
12VAR=`$CMD_SED -e '/2/!d' < $TMPFILE`
13$CMD_RM -f $TMPFILE
14if test "$VAR" != "2"; then
15 echo "redirect-3: FAILURE - VAR=$VAR."
16 exit 1
17fi
18echo "redirect-3: SUCCESS"
19exit 0
20
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette