2 3if [ "$1" != nested ]; then 4 while :; do 5 set -- nested 6 . "$0" 7 echo bad2 8 exit 2 9 done 10 exit 0 11fi 12# To trigger the bug, the following commands must be at the top level, 13# with newlines in between. 14break 15echo bad1 16exit 1
| 2 3if [ "$1" != nested ]; then 4 while :; do 5 set -- nested 6 . "$0" 7 echo bad2 8 exit 2 9 done 10 exit 0 11fi 12# To trigger the bug, the following commands must be at the top level, 13# with newlines in between. 14break 15echo bad1 16exit 1
|