Lines Matching refs:SHELL

129 $SHELL -c '
147 [[ $( $SHELL ./script) == $'hello\nworld' ]] || err_exit 'closing 3 & 4 causes script to fail'
193 [[ $($SHELL $tmp/1) == ok ]] || err_exit "parent i/o causes child script to fail"
264 if $SHELL -c '{n}</dev/null' 2> /dev/null
269 $SHELL -ic '
282 $SHELL -c "{ > $tmp/1 ; date;} >&- 2> /dev/null" > $tmp/2
284 $SHELL -c "$SHELL -c ': 3>&1' 1>&- 2>/dev/null" && err_exit 'closed standard output not passed to subshell'
285 [[ $(cat <<- \EOF | $SHELL
294 $SHELL -c 'exec 3>; /dev/null' 2> /dev/null && err_exit '>; with exec should be an error'
295 $SHELL -c ': 3>; /dev/null' 2> /dev/null || err_exit '>; not working with at all'
297 if ! $SHELL -c "false >; $tmp/1" 2> /dev/null
300 if ! $SHELL -c "sed -e 's/hello/hello world/' $tmp/1" >; $tmp/1 2> /dev/null
304 $SHELL -c 'exec 3<>; /dev/null' 2> /dev/null && err_exit '<>; with exec should be an error'
305 $SHELL -c ': 3<>; /dev/null' 2> /dev/null || err_exit '<>; not working with at all'
307 if ! $SHELL -c "false <>; $tmp/1" 2> /dev/null
310 if ! $SHELL -c "head -1 $tmp/1" <>; $tmp/1 2> /dev/null
314 if ! $SHELL -c head < $tmp/1 <#((6)) <>; $tmp/1 2> /dev/null
387 if $SHELL -c "export LC_ALL=C.UTF-8; c=$'\342\202\254'; [[ \${#c} == 1 ]]" 2>/dev/null
407 do g=$(LC_ALL=$lc_all $SHELL -c "{ print -n '$a'; sleep 0.2; print -n '$b'; sleep 0.2; } | { read ${o[i]} a; print -n \$a; read a; print -n \ \$a; }")
447 $SHELL -c "PS4=':2:'
462 tmp=$tmp $SHELL 2> /dev/null -c 'exec 3<&1 ; exec 1<&- ; exec > $tmp/outfile;print foobar' || err_exit 'exec 1<&- causes failure'
472 $SHELL -c "sed -e 's/there //' $tmp/foobar >; $tmp/foobar"