6 if ! eval "[ $* ]"; then
12 check '"$(echo abcde)" = "abcde"'
13 check '"$(echo abcde; :)" = "abcde"'
15 check '"$(printf abcde)" = "abcde"'
16 check '"$(printf abcde; :)" = "abcde"'
20 check '-n "$(umask; :)"'
21 check '-n "$(umask 2>&1)"'
22 check '-n "$(umask 2>&1; :)"'
26 check '-n "$(times; :)"'
27 check '-n "$(times 2>&1)"'
28 check '-n "$(times 2>&1; :)"'
31 check '".$(umask -@ 2>&1)." = ".umask: Illegal option -@."'
32 check '".$(umask -@ 2>&1; :)." = ".umask: Illegal option -@."'
33 check '".$({ umask -@; } 2>&1)." = ".umask: Illegal option -@."'
36 check '".$(shift xyz 2>&1)." = ".shift: Illegal number: xyz."'
37 check '".$(shift xyz 2>&1; :)." = ".shift: Illegal number: xyz."'
38 check '".$({ shift xyz; } 2>&1)." = ".shift: Illegal number: xyz."'
45 check '"$(v=4 eval echo \$v)" = 4'
48 exit $((failures > 0))