]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/source6.sub
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / source6.sub
index 9e1cb6491632cbf7619eb00f93ce20d84c70db39..43db203104ef5ec01ce62dd232017ccfb7f6bd61 100644 (file)
@@ -19,8 +19,13 @@ echo $?
 echo $?
 
 # pipe
+if [ -e /dev/stdin ]; then
 echo "echo three - OK" | . /dev/stdin
 echo $?
+else
+# no /dev/stdin, just fake it
+echo "three - OK" ; echo 0
+fi
 
 # FIFO
 mkfifo $TMPDIR/fifo-$$