Skip to content

Commit

Permalink
tests/options.sh: fix child shell test by exporting variable
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
McDutchie committed Jun 11, 2020
1 parent 781f0a3 commit e2a648b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/ksh93/tests/options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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++))
Expand Down

0 comments on commit e2a648b

Please sign in to comment.