Lines Matching refs:got

169 	got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
170 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
171 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
172 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
174 got=$(unset FPATH; PATH=/dev/null; whence ./$cmd)
175 [[ $got == $exp ]] || err_exit "whence $cmd should find ./$cmd with PATH=/dev/null"
177 got=$(unset FPATH; PATH=/dev/null; whence $PWD/$cmd)
178 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
182 got=$($SHELL -c "unset FPATH; PATH=/dev/null; whence ./notfound" 2>&1)
183 [[ $got == $exp ]] || err_exit "whence ./$cmd failed -- expected '$exp', got '$got'"
184 got=$($SHELL -c "unset FPATH; PATH=/dev/null; whence $PWD/notfound" 2>&1)
185 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd failed -- expected '$exp', got '$got'"
193 got=$($cmd 2>&1)
194 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
195 got=$($cmd 2>&1; :)
196 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
198 got=$(whence ./$cmd)
199 [[ $got == $exp ]] || err_exit "whence ./$cmd should find ./$cmd with PATH=/dev/null"
201 got=$(whence $PWD/$cmd)
202 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
205 got=$(whence ./notfound)
206 [[ $got == $exp ]] || err_exit "whence ./$cmd failed -- expected '$exp', got '$got'"
207 got=$(whence $PWD/notfound)
208 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd failed -- expected '$exp', got '$got'"
281 { got=$($scr; print $?); } 2>/dev/null
282 [[ "$got" == "$exp" ]] || err_exit "unreadable empty script should fail -- expected $exp, got $got"
283 { got=$(command $scr; print $?); } 2>/dev/null
284 [[ "$got" == "$exp" ]] || err_exit "command of unreadable empty script should fail -- expected $exp, got $got"
287 got=$($SHELL -c "$scr; print \$?" 2>/dev/null)
288 [[ "$got" == "$exp" ]] || err_exit "\$SHELL -c of unreadable empty script should fail -- expected $exp, got" $got
289 got=$($SHELL -c "command $scr; print \$?" 2>/dev/null)
290 [[ "$got" == "$exp" ]] || err_exit "\$SHELL -c of command of unreadable empty script should fail -- expected $exp, got" $got
295 { got=$($scr; print $?); } 2>/dev/null
296 [[ "$got" == "$exp" ]] || err_exit "unreadable non-empty script should fail -- expected $exp, got $got"
297 { got=$(command $scr; print $?); } 2>/dev/null
298 [[ "$got" == "$exp" ]] || err_exit "command of unreadable non-empty script should fail -- expected $exp, got $got"
301 got=$($SHELL -c "$scr; print \$?" 2>/dev/null)
302 [[ "$got" == "$exp" ]] || err_exit "\$SHELL -c of unreadable non-empty script should fail -- expected $exp, got" $got
303 got=$($SHELL -c "command $scr; print \$?" 2>/dev/null)
304 [[ "$got" == "$exp" ]] || err_exit "\$SHELL -c of command of unreadable non-empty script should fail -- expected $exp, got" $got