mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
tests/options.sh: fix child shell test by exporting variable
src/cmd/ksh93/tests/options.sh: - Pipe hang bugfix test: The child shell has no idea how long to sleep for if we don't export the variable telling it so. (cherry picked from commit ede0960c4ec84f0f934b17072a892a4e40798e97)
This commit is contained in:
parent
781f0a39aa
commit
e2a648b41f
1 changed files with 2 additions and 1 deletions
|
@ -518,7 +518,8 @@ z=$($SHELL 2>&1 -uc 'print ${X23456789012345}')
|
|||
|
||||
# pipe hang bug fixed 2011-03-15
|
||||
float start=SECONDS toolong=3
|
||||
( $SHELL <<-EOF
|
||||
( export toolong
|
||||
$SHELL <<-EOF
|
||||
set -o pipefail
|
||||
(sleep $toolong;kill \$\$> /dev/null) &
|
||||
cat $SHELL | for ((i=0; i < 5; i++))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue