/titanic_52/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | arrays.sh | 89 unset foo 90 if (( ${#foo[@]} != 0 )) 91 then err_exit 'number of elements of unset variable foo is not 0' 93 foo='' 94 if (( ${#foo[0]} != 0 )) 97 if (( ${#foo[@]} != 1 )) 98 then err_exit 'number of elements of null variable foo is not 1' 100 unset foo 101 foo[0]=foo 662 alias foo=bar global() alias [all...] |
H A D | attributes.sh | 90 x=$(foo=abc $SHELL <<! 91 foo=bar 92 $SHELL -c 'print \$foo' 104 readonly $a=foo 105 if [[ $b != foo ]] 135 unset -f foo 136 function foo function 143 foo 1 147 foo 153 unset foo 284 function foo global() function [all...] |
H A D | comvar.sh | 38 nameref foo=p 39 if [[ ${foo.x} != ${Point.x} ]] 42 unset foo 64 x=( [foo]=bar ) 68 unset -n foo x 69 unset foo x 70 foo=( x=3) 71 nameref x=foo 72 if [[ ${!x.@} != foo.x ]] 79 x.foo 222 function foo global() function 431 function foo global() function [all...] |
H A D | nameref.sh | 36 nameref foo=$1 bar=$2 37 if [[ $foo != $bar ]] 38 then err_exit "foo=$foo != bar=$bar" 40 foo=hello 41 if [[ $foo != $bar ]] 42 then err_exit "foo=$foo != bar=$bar" 44 foo.child=child 45 if [[ ${foo [all...] |
H A D | functions.sh | 39 integer foo=33 45 1) print -r - "$foo" "$bar";; 47 3) typeset foo=foo 49 print -r - "$foo" "$bar";; 50 4) trap 'foo=36' EXIT 51 typeset foo=20;; 71 if [[ $(bar=foo foobar 1) != '33 foo' ]] 74 if [[ $bar == foo ]] 118 function foo global() function 155 function foo global() function 184 function foo global() function 189 function foo global() function 206 function foo global() function 349 function foo global() function 774 function foo global() function 876 function foo global() function 904 function foo global() function 1022 function foo global() function 1066 function foo global() function 1081 function foo global() function 1104 function foo global() function 1140 function foo global() function 1160 function foo global() function 1179 then function foo { getopts --man; } global() function 1183 function foo global() function 1195 function foo global() function [all...] |
H A D | case.sh | 32 bam=foo[3] 34 do foo=0 36 foo1) foo=1;; 37 $bar) foo=2;; 38 $bam) foo=3;; 39 foo[4]) foo=4;; 41 foo=5;; 43 foo=6;; 45 if [[ $i != foo [all...] |
H A D | alias.sh | 34 alias foo='print hello' alias 35 if [[ $(foo) != hello ]] 36 then err_exit 'foo, where foo is alias for "print hello" failed' 38 if [[ $(foo world) != 'hello world' ]] 39 then err_exit 'foo world, where foo is alias for "print hello" failed' 41 alias foo='print hello ' alias 43 if [[ $(foo bar) != 'hello world' ]] 44 then err_exit 'foo ba 57 alias foo 2> /dev/null && err_exit "alias for non-existent alias foo returns true" global() alias 73 alias foo=echo global() alias [all...] |
H A D | quoting2.sh | 75 x=$((echo foo)|(cat)) 76 if [[ $x != foo ]] 101 set -- ${x+foo bar bam} 103 then err_exit '${x+foo bar bam} does not yield three arguments' 105 set -- ${x+foo "bar bam"} 107 then err_exit '${x+foo "bar bam"} does not yield two arguments' 109 set -- ${x+foo 'bar bam'} 111 then err_exit '${x+foo '\''bar bam'\''} does not yield two arguments' 113 set -- ${x+foo $x bam} 115 then err_exit '${x+foo [all...] |
H A D | append.sh | 54 aarray+=( [2]=2 [3]=3 [foo]=bar ) 69 unset foo 70 foo=one 71 foo+=(two) 72 if [[ ${foo[@]} != 'one two' ]] 75 unset foo 76 foo[0]=(x=3) 77 foo+=(x=4) 78 [[ ${foo[1].x} == 4 ]] || err_exit 'compound append to index array not working' 79 [[ ${foo[ [all...] |
H A D | variables.sh | 117 nameref foo=${.sh.name}.save 118 foo=${.sh.value} 127 nameref foo=${.sh.name}.save 128 .sh.value=$foo 134 typeset +n foo 135 unset foo 136 foo=bar 138 unset foo 140 if [[ $foo != '' ]] 141 then err_exit '$foo no 427 function foo global() function [all...] |
H A D | basic.sh | 87 print hi > .foo 105 if (command > foo\\abc) 2> /dev/null 106 then set -- foo* 107 if [[ $1 != 'foo\abc' ]] 108 then err_exit 'foo* does not match foo\abc' 126 bar=foo 127 eval foo=\$bar 128 if [[ $foo != foo ]] 312 foo() global() function [all...] |
H A D | return.sh | 38 foo=NOVAL bar=NOVAL 40 function foo function 42 typeset foo=NOEXIT 43 trap "foo=EXIT;rm -f $file" EXIT 66 [[ $foo == EXIT ]] || err_exit "foo "$@" : exit trap not set" 69 err_exit "foo $@: doesn't remove $file" 71 foo=NOVAL bar=NOVAL 89 foo 0 0 || err_exit "foo [all...] |
H A D | substring.sh | 30 base=/home/dgk/foo//bar 92 if [[ "${string1#@(*/bar|*/foo)}" != //bar/abcabcabc ]] 93 then err_exit "string1#@(*/bar|*/foo)" 95 if [[ ${string1##@(*/bar|*/foo)} != /abcabcabc ]] 96 then err_exit "string1##@(*/bar|*/foo)" 98 if [[ ${string1##*/@(bar|foo)} != /abcabcabc ]] 99 then err_exit "string1##*/@(bar|foo)" 101 foo=abc 102 if [[ ${foo#a[b*} != abc ]] 105 if [[ ${foo//[ 615 function foo global() function [all...] |
H A D | select.sh | 37 1) foo 42 select i in foo bar bam 44 foo) break;; 53 select i in foo bar bam 55 foo) err_exit "select foo not working" 2>&3 57 *) if [[ $REPLY != foo ]] 64 foo
|
H A D | namespace.sh | 34 foo=abc 40 print global fn $foo 44 print global fun $foo 50 print xfun global $foo 56 print xfun local $foo 68 foo=bar 73 print local fn $foo 94 [[ $(runrun $foo) == 'local prog bar' ]] || err_exit 'local binary on PATH failed' 102 [[ $(run $foo) == 'global prog abc' ]] || err_exit 'global binary on PATH failed'
|
H A D | types.sh | 62 function foo function 69 foo r.y y 72 foo y r.y 90 typeset -A arr=([foo]=one [bar]=2) 91 typeset -A brr=([foo]=one [bar]=2) 108 typeset -m brr[foo]=brr[bar] 109 [[ ${brr[foo]} == 2 ]] || err_exit 'move an associative array element fails' 125 typeset x=foo y=bar 133 [[ ${x.x} == foo ]] || err_exit 'x.x should be foo' [all...] |
/titanic_52/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.basename.d.out | 3 if [ `basename "/foo/bar/baz"` != "baz" ]; then 4 echo "basename(\"/foo/bar/baz\") is \"baz\"; expected \"`basename "/foo/bar/baz"`"\" 7 if [ `dirname "/foo/bar/baz"` != "/foo/bar" ]; then 8 echo "dirname(\"/foo/bar/baz\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz"`"\" 11 if [ `basename "/foo/bar///baz/"` != "baz" ]; then 12 echo "basename(\"/foo/ba [all...] |
H A D | tst.cleanpath.d.out | 1 cleanpath("/foo/bar/baz") = "/foo/bar/baz" 2 cleanpath("/foo/bar///baz/") = "/foo/bar/baz/" 3 cleanpath("/foo/bar/baz/") = "/foo/bar/baz/" 4 cleanpath("/foo/bar/baz//") = "/foo/bar/baz/" 5 cleanpath("/foo/bar/baz/.") = "/foo/ba [all...] |
/titanic_52/usr/src/cmd/dtrace/demo/vars/ |
H A D | clause.d | 28 this int foo; /* an integer clause-local variable */ variable 33 * Set foo to be 10 if and only if this is the first clause executed. 35 this->foo = (me % 3 == 0) ? 10 : this->foo; 36 printf("Clause 1 is number %d; foo is %d\n", me++ % 3, this->foo++); 42 * Set foo to be 20 if and only if this is the first clause executed. 44 this->foo = (me % 3 == 0) ? 20 : this->foo; 45 printf("Clause 2 is number %d; foo i [all...] |
/titanic_52/usr/src/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.utf8probefunc.ksh | 21 cat > foo.c <<EOF 25 foo() 27 printf("in foo\n"); 33 foo(); 37 if ! gcc -m32 -S -o foo.orig.s foo.c ; then 38 print -u 2 "failed to compile foo in $DIR" 45 cat foo.orig.s | sed 's/foo/foø/g' > foo [all...] |
H A D | tst.utf8probemod.ksh | 21 cat > foo.c <<EOF 24 extern void foo(); 29 foo(); 37 foo() 39 printf("called foo\n"); 49 if ! gcc -m32 -o foo foo.c -lføo -L. ; then 50 print -u 2 "failed to compile foo in $DIR" 57 -qc ./foo ; then
|
/titanic_52/usr/src/lib/libmtmalloc/tests/ |
H A D | dblfree.c | 41 char *foo; in main() local 43 foo = malloc(10); in main() 44 free(foo); in main() 50 free(foo); in main() 52 foo = malloc(10); in main() 53 free(foo); in main() 60 free(foo); in main()
|
/titanic_52/usr/src/contrib/ast/src/cmd/msgcc/ |
H A D | msgcc.tst | 7 #include <foo-bar.h> 11 error(1, "foo bar"); 13 errormsg(locale, 2, "%s: bar foo"); 17 OUTPUT t.mso $'str "foo bar"\nstr "%s: bar foo"' 22 #define stderr foo 25 fprintf(stderr, "foo bar"); 28 OUTPUT t.mso $'str "foo bar"'
|
/titanic_52/usr/src/common/ficl/test/ |
H A D | ooptest.fr | 49 cr .( c-foo class ) cr 50 object --> sub c-foo 61 .( c-foo instance methods... ) cr 62 c-foo --> new foo-instance 64 foo-instance --> methods 65 foo-instance --> pedigree 67 foo-instance 2dup 71 c-foo --> see init 73 foo [all...] |
/titanic_52/usr/src/cmd/dtrace/test/tst/common/scalars/ |
H A D | tst.selfarray2.d | 38 self struct bar foo[int]; variable 41 /!self->foo[0].pid/ 43 self->foo[0].pid = pid; 44 self->foo[0].curthread = curthread; 48 /self->foo[0].pid != pid/ 51 pid, self->foo[0].pid, self->foo[0].curthread, curthread);
|