1# $FreeBSD: head/tools/regression/bin/sh/builtins/fc2.0 211408 2010-08-16 22:23:19Z jilles $
| 1# $FreeBSD: head/tools/regression/bin/sh/builtins/fc2.0 213738 2010-10-12 18:20:38Z obrien $
|
2set -e 3trap 'echo Broken pipe -- test failed' PIPE 4 5P=${TMPDIR:-/tmp} 6cd $P 7T=$(mktemp -d sh-test.XXXXXX) 8cd $T 9 10mkfifo input output error
| 2set -e 3trap 'echo Broken pipe -- test failed' PIPE 4 5P=${TMPDIR:-/tmp} 6cd $P 7T=$(mktemp -d sh-test.XXXXXX) 8cd $T 9 10mkfifo input output error
|
11HISTFILE=/dev/null sh +m -i <input >output 2>error &
| 11HISTFILE=/dev/null ${SH} +m -i <input >output 2>error &
|
12exec 3>input 13{ 14 # Command not found, containing slash 15 echo '/var/empty/nonexistent' >&3 16 # Read error message, shell will read new input now 17 read dummy <&5 18 # Execute bad command again 19 echo 'fc -e true; echo continued' >&3
--- 15 unchanged lines hidden --- | 12exec 3>input 13{ 14 # Command not found, containing slash 15 echo '/var/empty/nonexistent' >&3 16 # Read error message, shell will read new input now 17 read dummy <&5 18 # Execute bad command again 19 echo 'fc -e true; echo continued' >&3
--- 15 unchanged lines hidden --- |