Searched refs:null (Results 1 - 25 of 155) sorted by relevance

1234567

/ast/src/lib/libexpr/
H A Dexnospace.c37 static const char null[1]; local
40 return (char*)null;
/ast/src/lib/libast/comp/
H A Dlocaleconv.c32 static char null[] = ""; variable
38 &null[0],
39 &null[0],
40 &null[0],
41 &null[0],
42 &null[0],
43 &null[0],
44 &null[0],
45 &null[0],
59 &null[
[all...]
/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/null` ;;
[all...]
/ast/src/cmd/ksh93/tests/
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
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
[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/null || err_exi
[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/null
[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
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/null && err_exit 'continue 0 should return an error')
153 (break 0 2>/dev/null
[all...]
H A Dbracket.sh34 null=''
35 if [[ ! -z $null ]]
36 then err_exit "-z: null string should be of zero length"
81 if [[ -f /dev/null ]]
82 then err_exit "-f: /dev/null should not be an ordinary file"
113 if [[ -n $null ]]
114 then err_exit "'$null' has non-zero length"
136 [[ ! ( ! -z $null && ! -z x) ]] || err_exit "negation and grouping"
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/null || err_exi
[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
78 do [[ -e ${FDFS[fdfs].dir} ]] && { command : > ${FDFS[fdfs].dir}/1; } 2>/dev/null >&2 && break
123 do exec 4< /dev/null
128 ./close0 2> /dev/null || err_exit "multiple exec 4< /dev/null can fail"
138 cmp -s in out' 2> /dev/null
[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/null
[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/null
[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/null
[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 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/null; " )
[all...]
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/null || err_exi
[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
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/lib/libcodex/
H A Dcodexnull.c25 * return null write stream for pure codexdata()
47 static Sfio_t null = SFNEW(nullbuf, 0, 0, SF_WRITE, &nulldisc, 0); variable
52 return &null;
/ast/src/cmd/tests/sfio/
H A Dthole.c22 /* Test for /dev/null and hole-preserving code */
26 Sfio_t* null; local
31 if(!(null = sfopen(NIL(Sfio_t*),"/dev/null","w")) )
32 terror("Opening /dev/null");
34 sfsetbuf(null,NIL(char*),(size_t)SF_UNBOUND);
42 sfsetfd(null,-1);
43 sfsetfd(null,sffileno(f));
44 sfsync(null);
/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/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/null
[all...]

Completed in 382 milliseconds

1234567