Searched refs:dev (Results 1 - 25 of 150) sorted by relevance

123456

/ast/src/cmd/ksh93/tests/
H A Dexpand.sh111 set -- ~(N)/dev/null
112 [[ $# == 1 && $1 == /dev/null ]] || err_exit "~(N)/dev/null not matching /dev/null"
113 set -- ~(N)/dev/non_existant_file
114 [[ $# == 0 ]] || err_exit "~(N)/dev/nonexistant not empty"
115 set -- ""~(N)/dev/non_existant_file
116 [[ $# == 1 && ! $1 ]] || err_exit '""~(N)/dev/nonexistant not null argument'
117 set -- ~(N)/dev/non_existant_file""
118 [[ $# == 1 && ! $1 ]] || err_exit '~(N)/dev/nonexisten
[all...]
H A Dalias.sh57 alias foo 2> /dev/null && err_exit "alias for non-existent alias foo returns true"
70 if [[ $(!! hello 2>/dev/null) != hello ]]
78 if [[ $(foo bar 2> /dev/null) != bar ]]
81 builtin -d rm 2> /dev/null
82 if whence rm > /dev/null
87 if hash -r 2>/dev/null && [[ ! $(hash) ]]
92 hash -r -- $i 2>/dev/null || err_exit "hash -r -- $i failed"
97 ( alias :pr=print) 2> /dev/null || err_exit 'alias beginning with : fails'
98 ( alias p:r=print) 2> /dev/null || err_exit 'alias with : in name fails'
H A Dbasic.sh105 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 )
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/nul
[all...]
H A Dbracket.sh81 if [[ -f /dev/null ]]
82 then err_exit "-f: /dev/null should not be an ordinary file"
116 if [[ ! -r /dev/fd/0 ]]
117 then err_exit "/dev/fd/0 not open for reading"
119 if [[ ! -w /dev/fd/2 ]]
120 then err_exit "/dev/fd/2 not open for writing"
171 x='@(bin|dev|?)'
176 if [[ dev != $x ]]
189 test \( -n x \) -o \( -n y \) 2> /dev/null || err_exit 'test ( -n x ) -o ( -n y) not working'
190 test \( -n x \) -o -n y 2> /dev/nul
[all...]
H A Dsubshell.sh99 eval "exec $Error_fd>&2 2>/dev/null"
102 while whence $TEST_notfound >/dev/null 2>&1
117 ' > $tmp/sub 2>/dev/null
129 set -- $(printf %.'$(($BS*$nb))'c x | dd bs='$bs' 2>/dev/null)
132 ' > $tmp/sub 2>/dev/null
199 ') 2>/dev/null)
205 do for TEST_redirect in '' '>/dev/null'
240 x=$( $date > /dev/null 2>&1 ;:)
294 if %sexpr "NOMATCH" : ".*Z" >/dev/null%s
339 INS=( "" "builtin cat; " "builtin -d cat $bincat; " ": > /dev/nul
[all...]
H A Dheredoc.sh45 cmp $f $g 2> /dev/null || err_exit "'hello world' quoted here doc not working"
49 cmp $f $g 2> /dev/null || err_exit "'hello world' tabbed here doc not working"
53 cmp $f $g 2> /dev/null || err_exit "'hello world' quoted tabbed here doc not working"
58 cmp $f $g 2> /dev/null || err_exit "'$x world' here doc not working"
62 cmp $f $g 2> /dev/null || err_exit "'$(print hello) world' here doc not working"
72 cmp $f $g 2> /dev/null || err_exit "unquoted here doc not working"
81 cat > /dev/null <<EOF # comments should not cause core dumps
87 cmp /dev/null $g 2> /dev/null || err_exit "empty here doc not working"
110 ' 2> /dev/nul
[all...]
H A Dsignal.sh39 do if ! n=$(kill -l $s 2>/dev/null)
41 elif ! t=$(kill -l $n 2>/dev/null)
45 elif ! m=$(kill -l $t 2>/dev/null)
62 } | head > /dev/null
67 { sleep 4; kill $cop; } 2>/dev/null &
69 if wait $cop 2>/dev/null
70 then kill $spy 2>/dev/null
151 do if $sh -c 'exit 0' > /dev/null 2>&1
168 exec 2>/dev/null
292 done > /dev/nul
[all...]
H A Dio.sh40 done 2> /dev/null
47 eval "a=\$(print foo | $tmp/mycat" $i $i'>&1 > /dev/null |cat)' 2> /dev/null
50 exec 3> /dev/null
66 if ( 4> file1 ) 2> /dev/null
74 ( dir=/dev/fd semantics='open|dup' )
75 ( dir=/dev/fd semantics='dup' )
78 do [[ -e ${FDFS[fdfs].dir} ]] && { command : > ${FDFS[fdfs].dir}/1; } 2>/dev/null >&2 && break
94 # 2004-11-25 ancient /dev/fd/N redirection bug fix
123 do exec 4< /dev/nul
[all...]
H A Dbuiltins.sh98 print $line | /bin/cat > /dev/null
115 read line < /dev/null
117 then err_exit "read from /dev/null failed"
125 print -f "hello%nbar\n" size > /dev/null
130 [[ -w /dev/fd/1 ]] || err_exit "2<&1- with built-ins has side effects"
135 $SHELL -c 'read x <<< hello' 2> /dev/null || err_exit 'syntax <<< not recognized'
136 ($SHELL -c 'read x[1] <<< hello') 2> /dev/null || err_exit 'read x[1] not working'
150 (continue bad 2>/dev/null && err_exit 'continue bad should return an error')
151 (break bad 2>/dev/null && err_exit 'break bad should return an error')
152 (continue 0 2>/dev/nul
[all...]
H A Dpath.sh62 [[ ${ dir1;} == dir1 ]] 2> /dev/null && err_exit 'should not be be dir1'
67 [[ ${ dir2;} == dir2 ]] 2> /dev/null && err_exit 'should not be be dir2'
88 [[ $($SHELL ./bug1 2>/dev/null) == ok ]] || err_exit "PATH in function not working"
101 ($SHELL ./bug1) 2> /dev/null || err_exit "path_delete bug"
103 if $SHELL tdir > /dev/null 2>&1
108 if [[ $($SHELL ls 2> /dev/null) != hi ]]
111 if [[ $(ls -d . 2>/dev/null) == . && $(PATH=/bin:/usr/bin:$PATH ls -d . 2>/dev/null) != . ]]
124 do if ! whence notfound$i 2> /dev/null
141 done > /dev/nul
[all...]
H A Dcoprocess.sh99 kill $(jobs -p) 2>/dev/null
107 $file 2> /dev/null || err_exit "parent $cat coprocess prevents script coprocess"
110 kill $(jobs -p) 2>/dev/null
124 { sleep 4; kill $cop; } 2>/dev/null &
126 if wait $cop 2>/dev/null
127 then kill $spy 2>/dev/null
147 { : |& } 2>/dev/null ||
163 ) 2>/dev/null | read -t 10 r
176 ) 2>/dev/null | read -t 10 r
186 kill $! 2> /dev/nul
[all...]
H A Doptions.sh56 print $'(print -u1 aha) &>/dev/null\n(print -u2 aha) &>/dev/null' > $env
63 got=$($SHELL -E -c : 2>/dev/null)
67 err_exit "\$ENV file &>/dev/null does not redirect stdout -- expected '', got $got"
69 got=$($SHELL -E -c : 2>&1 >/dev/null)
73 err_exit "\$ENV file &>/dev/null does not redirect stderr -- expected one diagnostic line, got $got"
159 if command set -G 2> /dev/null
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/nul
[all...]
H A Dsigchld.sh50 $SHELL -c : > /dev/null # foreground does not generate SIGCHLD
116 } 2> /dev/null
127 ) 2>/dev/null; print $?
151 x=$($SHELL 2> /dev/null -ic '/bin/notfound; sleep .5 & sleep 1;jobs')
153 x=$($SHELL 2> /dev/null -ic 'kill -0 12345678901234567876; sleep .5 & sleep 1;jobs')
H A Darith.sh129 ( ((x++)) ) 2>/dev/null
133 ( ((++x)) ) 2>/dev/null
138 ( ((x%1.1)) ) 2>/dev/null
149 ( [[ $(( pow(2,(3)) )) == 8 ]] ) 2> /dev/null
159 { z=$(typeset -RZ2 z2; (( z2 = 8 )); print $z2) ;} 2>/dev/null
163 { z=$(typeset -RZ3 z3; (( z3 = 8 )); print $z3) ;} 2>/dev/null
237 $SHELL -nc '((a = 1))' 2> /dev/null || err_exit "sh -n fails with arithmetic"
238 $SHELL -nc '((a.b++))' 2> /dev/null || err_exit "sh -n fails with arithmetic2"
241 if { (( z%2 != 1));} 2> /dev/null
315 $SHELL -c 'i=0;(( ofiles[i] != -1 && (ofiles[i] < mins || mins == -1) ));exit 0' 2> /dev/nul
[all...]
H A Dappend.sh32 x+=def ;} 2> /dev/null
37 { i+=4;} 2> /dev/null
42 { iarray+= (four five six) ;} 2> /dev/null
48 { iarray+= (four five six) ;} 2> /dev/null
99 { z+=(d=3 e f=l); } 2> /dev/null
113 } 2> /dev/null
/ast/src/lib/libcs/
H A Dgenshare.sh62 s="`df 2>/dev/null | sed -e 's/^[^(]*(//' -e '/^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*:/!d' -e 's/:.*//' -e '/^.$/d' | sort -u`"
64 "") s=`hostname 2>/dev/null || uname -n 2>/dev/null || cat /etc/whoami 2>/dev/null || echo local 2>/dev/null`
66 *) p=`df $dir/. 2>/dev/null | sed -e 's/^[^(]*(//' -e '/^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*:/!d' -e 's/:.*//' -e '/^.$/d'`
68 "") p=`hostname 2>/dev/null || uname -n 2>/dev/null || cat /etc/whoami 2>/dev/null || echo local 2>/dev/nul
[all...]
/ast/src/lib/libast/features/
H A Dparam.sh43 if $cc -c $tmp.c >/dev/null
H A Dpreroot.sh29 if /etc/preroot / /bin/echo >/dev/null
36 #define PR_REAL "/dev/.." /* real root pathname */
H A Dsig.sh31 $cc -c $tmp.c >/dev/null 2>$tmp.e
65 if $cc -c $tmp.c >/dev/null
71 do $cc -c -DTYPE=$i -DARG=$j $tmp.c >/dev/null 2>$tmp.e || continue
/ast/src/cmd/INIT/
H A DMAPLIB.mk25 do if $$(CC) -c $i > /dev/null
29 -) if $$(CC) -o $$(<:B:S=.exe) $i $g > /dev/null 2>&1
30 then $$(CC) -o $$(<:B:S=.exe) $i > /dev/null 2>&1 || {
42 done 2>/dev/null
/ast/src/cmd/3d/
H A Dmknod3d.c46 mknod3d(const char* path, mode_t mode, dev_t dev) argument
52 if (!fscall(NiL, MSG_mknod, 0, path, mode, dev))
56 if (!(sp = pathreal(path, P_PATHONLY, NiL)) || MKNOD(sp, mode, dev))
60 fscall(mp, MSG_mknod, 0, path, state.path.st.st_mode, dev);
63 fscall(mp, MSG_mknod, 0, path, mode, dev);
/ast/src/lib/libvgraph/
H A DMakefile24 -(ranlib libgraph.a; exit 0) >/dev/null 2>&1
27 -(rm -f $(INCDIR)/graph.h; exit 0) >/dev/null 2>&1
28 -(rm -f $(LIBDIR)/libgraph.a; exit 0) >/dev/null 2>&1
31 -(ranlib $(LIBDIR)/libgraph.a; exit 0) >/dev/null 2>&1
37 -(rm $(OBJS) libgraph.a FEATURE/*; exit 0) >/dev/null 2>&1
/ast/src/cmd/html/
H A Dhtml2db.c170 if (!(s = *argv) || streq(s, "-") || streq(s, "/dev/stdin") || streq(s, "/dev/fd/0"))
172 s = "/dev/stdin";
/ast/src/lib/libtksh/
H A Dwidget11 export tk_library=$(print "puts [set tk_library];exit 0" | ( wish4.0 || wish4.1 || wish ) 2> /dev/null)
/ast/src/cmd/sort/
H A Dtestsort.sh43 (ulimit -n 128) >/dev/null 2>&1 && ulimit -n 128
85 ab=`echo "$AB" | $SUM 2>/dev/null`
86 ba=`echo "$BA" | $SUM 2>/dev/null`
91 do ab=`echo "$AB" | $dir/$SUM $old 2>/dev/null`
93 ?*) ba=`echo "$BA" | $dir/$SUM $old 2>/dev/null`
144 if $SORT +0 </dev/null 2>/dev/null; then o=
146 if $SORT /dev/null -o xx 2>/dev/null; then O=
148 if $SORT -g </dev/nul
[all...]

Completed in 29 milliseconds

123456