Lines Matching refs:null

105 if	(command > foo\\abc) 2> /dev/null
111 if ( : > TT* && : > TTfoo ) 2>/dev/null
189 cat - > /dev/null
218 x=$( (/bin/echo foo) 2> /dev/null )
238 x=$( (/bin/echo hello) 2> /dev/null )
243 read line 2> /dev/null
322 [[ $($SHELL -c 'o=foobar; for x in foo bar; do (o=save);print $o;done' 2> /dev/null ) == $'foobar\nfoobar' ]] || err_exit 'for loop optimization subshell bug'
323 command exec 3<> /dev/null
324 if cat /dev/fd/3 >/dev/null 2>&1 || whence mkfifo > /dev/null
325 then [[ $($SHELL -c 'cat <(print foo)' 2> /dev/null) == foo ]] || err_exit 'process substitution not working'
326 [[ $($SHELL -c $'tee >(grep \'1$\' > '$tmp/scriptx$') > /dev/null <<- \!!!
332 cat '$tmp/scriptx 2> /dev/null) == line1 ]] || err_exit '>() process substitution fails'
336 do tee >(grep \'1$\' > '$tmp/scriptx$') > /dev/null <<- \!!!
343 cat '$tmp/scriptx 2>> /dev/null) == line1 ]] || err_exit '>() process substitution fails in for loop'
344 [[ $({ $SHELL -c 'cat <(for i in x y z; do print $i; done)';} 2> /dev/null) == $'x\ny\nz' ]] ||
350 [[ $($SHELL -c "print foo | $tmp/scriptx ;:" 2> /dev/null ) == foo ]] || err_exit 'piping into script fails'
351 [[ $($SHELL -c 'X=1;print -r -- ${X:=$(expr "a(0)" : '"'a*(\([^)]\))')}'" 2> /dev/null) == 1 ]] || err_exit 'x=1;${x:=$(..."...")} failure'
352 [[ $($SHELL -c 'print -r -- ${X:=$(expr "a(0)" : '"'a*(\([^)]\))')}'" 2> /dev/null) == 0 ]] || err_exit '${x:=$(..."...")} failure'
353 if cat /dev/fd/3 >/dev/null 2>&1 || whence mkfifo > /dev/null
355 $SHELL -c '[[ $(for i in 1;do cat <(print hello);done ) == hello ]]' 2> /dev/null|| err_exit "process substitution not working in for or while loop"
357 exec 3> /dev/null
359 [[ $( print "($tmp/scriptx bar)" | $SHELL 2>/dev/null) == 'foo bar' ]] || err_exit 'script pipe to shell fails'
371 ( typeset -r foo=bar) 2> /dev/null || err_exit 'readonly variables set in a subshell cannot unset'
372 $SHELL -c 'x=${ print hello;}; [[ $x == hello ]]' 2> /dev/null || err_exit '${ command;} not supported'
373 $SHELL 2> /dev/null <<- \EOF || err_exit 'multiline ${...} command substitution not supported'
379 $SHELL 2> /dev/null <<- \EOF || err_exit '${...} command substitution with side effects not supported '
387 $SHELL 2> /dev/null <<- \EOF || err_exit 'nested ${...} command substitution not supported'
393 $SHELL 2> /dev/null <<- \EOF || err_exit 'terminating } is not a reserved word with ${ command }'
397 $SHELL 2> /dev/null <<- \EOF || err_exit '${ command;}xxx not working'
411 foo=$(false) > /dev/null && err_exit 'failed command substitution with redirection not returning false'
420 $($false) > /dev/null && err_exit "\$($false) > /dev/null should fail"
422 if env x-a=y >/dev/null 2>&1
467 ( $SHELL -c 'trap : DEBUG; x=( $foo); exit 0') 2> /dev/null || err_exit 'trap DEBUG fails'
481 { env A__z=C+SHLVL $SHELL -c : ;} 2> /dev/null || err_exit "SHLVL with wrong attribute fails"
485 { time sleep 1.5 | $bintrue ;} 2> /dev/null
490 eval "cat > /dev/null < /dev/null"
494 . $tmp/foo.sh | cat > /dev/null
502 { sleep .001;echo $? >$file;} | cat > /dev/null
509 $SHELL -c 'kill -0 123456789123456789123456789' 2> /dev/null && err_exit 'kill not catching process id overflows'
511 [[ $($SHELL -c '{ cd..; print ok;}' 2> /dev/null) == ok ]] || err_exit 'command name ending in .. causes shell to abort'
513 $SHELL -xc '$(LD_LIBRARY_PATH=$LD_LIBRARY_PATH exec $SHELL -c :)' > /dev/null 2>&1 || err_exit "ksh -xc '(name=value exec ksh)' fails with err=$?"
515 $SHELL 2> /dev/null -c $'for i;\ndo :;done' || err_exit 'for i ; <newline> not vaid'