2 # This tests if the cmdsubst optimization is still used if possible.
11 eval "pid=\$(dummy=$code echo \$(\$SH -c echo\ \\\$PPID))"
13 if [ "$pid" = "$$" ]; then
17 echo "Failure for $code"
40 testcase '$(((w+4)*2/3))'
42 testcase '$((w>=0 && w<=5 && w!=2))'
44 testcase '$((${#IFS}))'
45 testcase '$((${#w}>=1))'
50 testcase '$(: $((w=4)))'
51 testcase '$(: ${v=2})'