VirtualBox

source: kBuild/trunk/src/kash/tests/redirect-2@ 3452

最後變更 在這個檔案從3452是 2284,由 bird 提交於 16 年 前

kash/tests: more tests.

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
檔案大小: 353 位元組
 
1#!/bin/sh
2
3# Redirect output from builtin commands in a subshell.
4
5. ${KASH_TEST_DIR}/common-include.sh
6
7TMPFILE="/tmp/redirect-2.$$.tmp"
8
9(echo -n 1 ; echo -n 2 ; echo -n 3 ) > $TMPFILE
10VAR=`$CMD_CAT $TMPFILE`
11$CMD_RM -f $TMPFILE
12if test "$VAR" != "123"; then
13 echo "redirect-2: FAILURE - VAR=$VAR"
14 exit 1
15fi
16echo "redirect-2: SUCCESS"
17exit 0
18
19
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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