Lines Matching refs:SHELL

39 if	[[ $( ${SHELL-ksh} -s hello<<-\!
43 then err_exit "${SHELL-ksh} -s not working"
53 [[ $($SHELL -D -c 'print hi; print $"hello"') == '"hello"' ]] || err_exit 'ksh -D not working'
63 got=$($SHELL -E -c : 2>/dev/null)
69 got=$($SHELL -E -c : 2>&1 >/dev/null)
80 [[ $(print env_hit | $SHELL 2>&1) == "OK" ]] &&
82 [[ $(print env_hit | $SHELL -E 2>&1) == "OK" ]] &&
84 [[ $(print env_hit | $SHELL +E 2>&1) == "OK" ]] &&
86 [[ $(print env_hit | $SHELL --rc 2>&1) == "OK" ]] &&
88 [[ $(print env_hit | $SHELL --norc 2>&1) == "OK" ]] &&
91 [[ $(print env_hit | $SHELL 2>&1) == "OK" ]] &&
93 [[ $(print env_hit | $SHELL -E 2>&1) == "OK" ]] ||
95 [[ $(print env_hit | $SHELL +E 2>&1) == "OK" ]] &&
97 [[ $(print env_hit | $SHELL --rc 2>&1) == "OK" ]] ||
99 [[ $(print env_hit | $SHELL --norc 2>&1) == "OK" ]] &&
101 [[ $(print env_hit | $SHELL -i 2>&1) == "OK" ]] ||
108 [[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
110 [[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] &&
112 [[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
114 [[ $(print env_hit | HOME=$tmp $SHELL --rc 2>&1) == "OK" ]] &&
116 [[ $(print env_hit | HOME=$tmp $SHELL --norc 2>&1) == "OK" ]] &&
119 [[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
121 [[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] &&
123 [[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
125 [[ $(print env_hit | HOME=$tmp $SHELL --rc 2>&1) == "OK" ]] &&
127 [[ $(print env_hit | HOME=$tmp $SHELL --norc 2>&1) == "OK" ]] &&
134 [[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
136 [[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] &&
138 [[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
140 [[ $(print env_hit | HOME=$tmp $SHELL --rc 2>&1) == "OK" ]] &&
142 [[ $(print env_hit | HOME=$tmp $SHELL --norc 2>&1) == "OK" ]] &&
145 [[ $(print env_hit | HOME=$tmp $SHELL 2>&1) == "OK" ]] &&
147 [[ $(print env_hit | HOME=$tmp $SHELL -E 2>&1) == "OK" ]] ||
149 [[ $(print env_hit | HOME=$tmp $SHELL +E 2>&1) == "OK" ]] &&
151 [[ $(print env_hit | HOME=$tmp $SHELL --rc 2>&1) == "OK" ]] ||
153 [[ $(print env_hit | HOME=$tmp $SHELL --norc 2>&1) == "OK" ]] &&
187 cp $SHELL ./-ksh
190 [[ $(HOME=$PWD $SHELL -l </dev/null 2>&1) == *$t* ]] &&
192 [[ $(HOME=$PWD $SHELL --login </dev/null 2>&1) == *$t* ]] &&
194 [[ $(HOME=$PWD $SHELL --login-shell </dev/null 2>&1) == *$t* ]] &&
196 [[ $(HOME=$PWD $SHELL --login_shell </dev/null 2>&1) == *$t* ]] &&
198 [[ $(HOME=$PWD exec -a -ksh $SHELL </dev/null 2>&1) == *$t* ]] &&
205 [[ $(HOME=$PWD $SHELL -l </dev/null 2>&1) == *$t* ]] ||
207 [[ $(HOME=$PWD $SHELL --login </dev/null 2>&1) == *$t* ]] ||
209 [[ $(HOME=$PWD $SHELL --login-shell </dev/null 2>&1) == *$t* ]] ||
211 [[ $(HOME=$PWD $SHELL --login_shell </dev/null 2>&1) == *$t* ]] ||
213 [[ $(HOME=$PWD exec -a -ksh $SHELL </dev/null 2>/dev/null) == *$t* ]] ||
215 [[ $(HOME=$PWD exec -a -ksh $SHELL </dev/null 2>&1) == *$t* ]] ||
387 got=$(for((n=1;n<exp;n++))do $SHELL --pipefail -c '(sleep 0.1;false)|true|true' && break; done; print $n)
403 $SHELL -c 'set -o pipefail; false | $(whence -p true);' && err_exit 'pipefail not returning failure with sh -c'
417 $SHELL -c '[[ $- == *c* ]]' || err_exit 'option c not in $-'
420 do HOME=$tmp ENV= $SHELL -$i >/dev/null 2>&1 <<- ++EOF++ || err_exit "option $i not in \$-"
429 do HOME=$tmp ENV= $SHELL -o $i >/dev/null 2>&1 <<- ++EOF++ || err_exit "option $i not equivalent to ${letters:j:1}"
437 exp=$(HISTFILE=$histfile $SHELL -c $'function foo\n{\ncat\n}\ntype foo')
439 do got=$( ( HISTFILE=$histfile $SHELL -ic $'unset '$var$'\nfunction foo\n{\ncat\n}\ntype foo\nexit' ) 2>&1 )
442 got=$( { HISTFILE=$histfile $SHELL -ic $'unset '$var$'\nfunction foo\n{\ncat\n}\ntype foo\nexit' ;} 2>&1 )
446 ( unset HISTFILE; $SHELL -ic "HISTFILE=$histfile" 2>/dev/null ) || err_exit "setting HISTFILE when not in environment fails"
463 print $'#!'$SHELL$'\nkill -KILL $$' > command-kill
482 $SHELL 2> /dev/null -c '{; true ;}' || err_exit 'leading ; causes syntax error in brace group'
483 $SHELL 2> /dev/null -c '(; true ;)' || err_exit 'leading ; causes syntax error in parenthesis group'
487 $SHELL --pipefail -c './pipefail 10000 | sed 1q' >/dev/null 2>&1 &