Lines Matching refs:dev

105 if	(command > foo\\abc) 2> /dev/null
111 if ( : > TT* && : > TTfoo ) 2>/dev/null
187 if [[ -p /dev/fd/0 ]]
189 cat - > /dev/null
190 [[ -p /dev/fd/0 ]] && print ok
197 no) err_exit "[[ -p /dev/fd/0 ]] fails for standard input pipe" ;;
218 x=$( (/bin/echo foo) 2> /dev/null )
236 x=$( (/bin/echo hello) 2> /dev/null )
241 read line 2> /dev/null
320 [[ $($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'
321 command exec 3<> /dev/null
322 if cat /dev/fd/3 >/dev/null 2>&1
323 then [[ $($SHELL -c 'cat <(print foo)' 2> /dev/null) == foo ]] || err_exit 'process substitution not working'
324 [[ $($SHELL -c $'tee >(grep \'1$\' > '$tmp/scriptx$') > /dev/null <<- \!!!
330 cat '$tmp/scriptx 2> /dev/null) == line1 ]] || err_exit '>() process substitution fails'
334 do tee >(grep \'1$\' > '$tmp/scriptx$') > /dev/null <<- \!!!
341 cat '$tmp/scriptx 2>> /dev/null) == line1 ]] || err_exit '>() process substitution fails in for loop'
342 [[ $({ $SHELL -c 'cat <(for i in x y z; do print $i; done)';} 2> /dev/null) == $'x\ny\nz' ]] ||
348 [[ $($SHELL -c "print foo | $tmp/scriptx ;:" 2> /dev/null ) == foo ]] || err_exit 'piping into script fails'
349 [[ $($SHELL -c 'X=1;print -r -- ${X:=$(expr "a(0)" : '"'a*(\([^)]\))')}'" 2> /dev/null) == 1 ]] || err_exit 'x=1;${x:=$(..."...")} failure'
350 [[ $($SHELL -c 'print -r -- ${X:=$(expr "a(0)" : '"'a*(\([^)]\))')}'" 2> /dev/null) == 0 ]] || err_exit '${x:=$(..."...")} failure'
352 if [[ -d /dev/fd && -w /dev/fd/3 ]]
354 $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"
356 exec 3> /dev/null
358 [[ $( print "($tmp/scriptx bar)" | $SHELL 2>/dev/null) == 'foo bar' ]] || err_exit 'script pipe to shell fails'
370 ( typeset -r foo=bar) 2> /dev/null || err_exit 'readonly variables set in a subshell cannot unset'
371 $SHELL -c 'x=${ print hello;}; [[ $x == hello ]]' 2> /dev/null || err_exit '${ command;} not supported'
372 $SHELL 2> /dev/null <<- \EOF || err_exit 'multiline ${...} command substitution not supported'
378 $SHELL 2> /dev/null <<- \EOF || err_exit '${...} command substitution with side effects not supported '
386 $SHELL 2> /dev/null <<- \EOF || err_exit 'nested ${...} command substitution not supported'
392 $SHELL 2> /dev/null <<- \EOF || err_exit 'terminating } is not a reserved word with ${ command }'
396 $SHELL 2> /dev/null <<- \EOF || err_exit '${ command;}xxx not working'
410 foo=$(false) > /dev/null && err_exit 'failed command substitution with redirection not returning false'
419 $($false) > /dev/null && err_exit "\$($false) > /dev/null should fail"
421 if env x-a=y >/dev/null 2>&1
466 ( $SHELL -c 'trap : DEBUG; x=( $foo); exit 0') 2> /dev/null || err_exit 'trap DEBUG fails'
480 { env A__z=C+SHLVL $SHELL -c : ;} 2> /dev/null || err_exit "SHLVL with wrong attribute fails"