Lines Matching refs:SHELL

84 if	[[ $($SHELL -c 'echo $x') != export ]]
87 if [[ $($SHELL -c 'xi=xi+4;echo $xi') != 24 ]]
90 x=$(foo=abc $SHELL <<!
92 $SHELL -c 'print \$foo'
202 then [[ $(env '!=1' $SHELL -c 'echo ok' 2>/dev/null) == ok ]] || err_exit 'malformed environment terminates shell'
213 [[ $($SHELL -c 'unset foo;typeset -Z2 foo; print ${foo:-3}' 2> /dev/null) == 3 ]] || err_exit '${foo:-3} not 3 when typeset -Z2 field undefined'
214 [[ $($SHELL -c 'unset foo;typeset -Z2 foo; print ${foo:=3}' 2> /dev/null) == 03 ]] || err_exit '${foo:=-3} not 3 when typeset -Z2 foo undefined'
226 [[ $($SHELL -c 'typeset -r IFS=;print -r $(pwd)' 2> /dev/null) == "$(pwd)" ]] || err_exit 'readonly IFS causes command substitution to fail'
293 { $SHELL <<- EOF
299 { $SHELL <<- EOF
327 $SHELL 2> /dev/null -c 'export foo=(bar=3)' && err_exit 'compound variables cannot be exported'
329 $SHELL -c 'builtin date' >/dev/null 2>&1 &&
354 got=$(print $($SHELL -c "builtin date; $2 $CMD; $3 $CMD; $4 $CMD"))
372 x=$($SHELL -c 'integer -s x=5;print -r -- $x')
398 { $SHELL <<- \EOF
426 $SHELL -c 'typeset v=foo; [[ $(typeset -p v[0]) == v=foo ]]'
436 $SHELL -c "$z; [[ \$(typeset -pa) == '$z' ]]" || err_exit 'typeset -pa does not list only index arrays'
438 $SHELL -c "$z; [[ \$(typeset -pC) == '$z' ]]" || err_exit 'typeset -pC does not list only compound variables'
441 $SHELL -c "$z; [[ \$(typeset -pA) == '$z' ]]" || err_exit 'typeset -pA does not list only associative arrays'
443 $SHELL 2> /dev/null -c 'typeset -C arr=( aa bb cc dd )' && err_exit 'invalid compound variable assignment not reported'