/illumos-gate/usr/src/test/util-tests/tests/awk/tests/ |
H A D | lilly.ok | 1 ### 1 BEGIN{foo=6;print foo/2} 3 ### 2 BEGIN{foo=10;foo/=2;print foo} 6 foo=bar 7 foo==bar 8 foo+=bar 9 foo-=bar 10 foo*=bar 11 foo/=bar 12 foo^=bar 13 foo%=bar [all …]
|
H A D | T.lilly | 23 foo=bar 24 foo==bar 25 foo+bar 26 foo+=bar 27 foo-=bar 28 foo*=bar 29 foo/=bar 30 foo^=bar 31 foo%=bar 35 foo bar [all …]
|
H A D | lilly.progs | 1 BEGIN{foo=6;print foo/2} 2 BEGIN{foo=10;foo/=2;print foo} 67 {if(split($0,foo,/=/))print $0} 68 {if(split($0,foo,/\=/))print $0} 69 {if(split($0,foo,/==/))print $0} 72 {if(split($0,foo,/-=/))print $0} 74 {if(split($0,foo,/%=/))print $0} 75 {if(split($0,foo,/^=/))print $0} 76 {if(split($0,foo,/!=/))print $0} 77 {if(split($0,foo,/<=/))print $0} [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | arrays.sh | 93 foo='' 101 foo[0]=foo 110 foo[0]=foo 200 xxx=foo 258 foo=one 259 foo=( $foo two) 329 foo=0 342 foo=one 351 print foo${foo[abc]} 579 foo=( ${foo[@]:1} ) [all …]
|
H A D | attributes.sh | 91 foo=bar 143 foo 1 147 foo 153 unset foo 154 foo=bar 158 unset foo 266 foo=abc 290 unset foo 307 unset foo 311 unset foo [all …]
|
H A D | comvar.sh | 42 unset foo 69 unset foo x 70 foo=( x=3) 90 unset foo 184 foo=( bar=foo barbar=bar) 266 unset foo 270 unset foo 280 unset foo 286 foo=( 300 "$foo" [all …]
|
H A D | nameref.sh | 40 foo=hello 54 .foo=top 55 .foo.bar=next 56 checkref .foo.bar .foo.bar 108 if [[ $foo != foo ]] 125 set foo 127 foo=hello 194 setval foo 5 224 foo=(x=hi) 230 i=foo [all …]
|
H A D | functions.sh | 47 3) typeset foo=foo 117 unset -f foo 159 foo 219 print foo 354 if [[ $(foo)$(foo) != ABCABC ]] 882 foo 1029 foo 1072 : $(foo) 1086 foo sub 1112 foo [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$foo ]] 80 ') == foo.h ]] || err_exit "optimizer bug"
|
H A D | alias.sh | 34 alias foo='print hello' alias 35 if [[ $(foo) != hello ]] 38 if [[ $(foo world) != 'hello world' ]] 41 alias foo='print hello ' alias 43 if [[ $(foo bar) != 'hello world' ]] 46 if [[ $(foo \bar) != 'hello bar' ]] 61 if [[ $(bar) != foo ]] 73 alias foo=echo alias 77 ( unalias foo) 78 if [[ $(foo bar 2> /dev/null) != bar ]] [all …]
|
H A D | quoting2.sh | 101 set -- ${x+foo bar bam} 105 set -- ${x+foo "bar bam"} 109 set -- ${x+foo 'bar bam'} 115 then err_exit '${x+foo $x bam} does not yield three arguments' 119 then err_exit '${x+foo "$x" bam} does not yield three arguments' 131 then err_exit '${x+foo "$x "bam} does not yield two arguments' 167 then err_exit '`eval print \\${foo$x}`' not working 199 [[ "${foo}$" == 'foo$' ]] || err_exit 'foo=foo;"${foo}$" != foo$' 200 [[ "${foo}${foo}$" == 'foofoo$' ]] || err_exit 'foo=foo;"${foo}${foo}$" != foofoo$' 202 [[ "$foo" == ~(Elr)(\\\$|#)\ ]] || err_exit $'\'$ \' not matching RE \\\\\\$|#\'' [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) 81 unset foo 82 foo=a [all …]
|
H A D | variables.sh | 134 typeset +n foo 135 unset foo 136 foo=bar 138 unset foo 147 unset foo 175 unset -n foo 176 foo=junk 552 unset foo 571 foo[bar]=1 576 foo[bar]=2 [all …]
|
H A D | basic.sh | 126 bar=foo 127 eval foo=\$bar 128 if [[ $foo != foo ]] 151 print foo 159 print foo 312 foo() function 317 foo 400 print foo 405 unset foo 410 unset foo [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.basename.d.out | 7 if [ `dirname "/foo/bar/baz"` != "/foo/bar" ]; then 11 if [ `basename "/foo/bar///baz/"` != "baz" ]; then 15 if [ `dirname "/foo/bar///baz/"` != "/foo/bar" ]; then 19 if [ `basename "/foo/bar/baz/"` != "baz" ]; then 23 if [ `dirname "/foo/bar/baz/"` != "/foo/bar" ]; then 31 if [ `dirname "/foo/bar/baz//"` != "/foo/bar" ]; then 35 if [ `basename "/foo/bar/baz/."` != "." ]; then 39 if [ `dirname "/foo/bar/baz/."` != "/foo/bar/baz" ]; then 47 if [ `dirname "/foo/bar/baz/./"` != "/foo/bar/baz" ]; then 55 if [ `dirname "/foo/bar/baz/.//"` != "/foo/bar/baz" ]; then [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/bar/baz/." 6 cleanpath("/foo/bar/baz/./") = "/foo/bar/baz/" 7 cleanpath("/foo/bar/../../baz/.//") = "/baz/" 8 cleanpath("foo/bar/./././././baz/") = "foo/bar/baz/" 9 cleanpath("/foo/bar/baz/../../../../../../") = "/" 12 cleanpath("/foo/bar/baz/../../bop/bang/../../bar/baz/") = "/foo/bar/baz/"
|
/illumos-gate/usr/src/test/elf-tests/tests/linker-sets/ |
H A D | simple-src.c | 36 struct foo { struct 40 SET_DECLARE(foo, struct foo); argument 42 struct foo a = { "foo" }; 43 struct foo b = { "bar" }; 44 struct foo c = { "baz" }; 46 SET_ENTRY(foo, a); 47 SET_ENTRY(foo, b); 48 SET_ENTRY(foo, c); 53 struct foo **c; in main() 56 printf("Set count: %d\n", (int)SET_COUNT(foo)); in main() [all …]
|
H A D | simple.out | 2 a: foo 5 item(foo, 0): foo 6 item(foo, 1): bar 7 item(foo, 2): baz 8 foo[0]: foo 9 foo[1]: bar 10 foo[2]: baz
|
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/ |
H A D | t.sub0 | 2 {sub(/[aeiou]/, "foo"); print} 3 {sub("[aeiou]", "foo"); print} 5 {gsub(/[aeiou]/, "foo"); print} 6 {gsub("[aeiou]", "foo"); print} 8 {sub(/[aeiou]/, "&foo"); print} 9 {sub("[aeiou]", "&foo"); print} 11 {gsub(/[aeiou]/, "&foo"); print} 12 {gsub("[aeiou]", "&foo"); print} 14 {sub(/[aeiou]/, "\&foo"); print} 15 {sub("[aeiou]", "\&foo"); print} [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/test-merge-forward/ |
H A D | test-impl.c | 16 struct foo { struct 17 struct foo *next; argument 24 mumble(struct foo *foo) in mumble() argument 26 foo->left = foo->right - foo->count; in mumble() 27 foo->count += foo->right; in mumble() 28 foo->right--; in mumble()
|
/illumos-gate/usr/src/cmd/dtrace/demo/vars/ |
H A D | clause.d | 28 this int foo; /* an integer clause-local variable */ variable 35 this->foo = (me % 3 == 0) ? 10 : this->foo; 36 printf("Clause 1 is number %d; foo is %d\n", me++ % 3, this->foo++); 44 this->foo = (me % 3 == 0) ? 20 : this->foo; 45 printf("Clause 2 is number %d; foo is %d\n", me++ % 3, this->foo++); 53 this->foo = (me % 3 == 0) ? 30 : this->foo; 54 printf("Clause 3 is number %d; foo is %d\n", me++ % 3, this->foo++);
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | sm_get_user1.c | 9 int foo, bar; in func() local 12 get_user(foo, user_ptr); in func() 13 bar = foo + 1; in func() 16 if (bar > foo) in func() 17 bar = foo; in func() 18 foo = bar * 8; in func() 21 if (x > foo) in func() 22 x = foo; in func() 23 foo = x * 8; in func() 26 foo = x * 8; in func()
|
H A D | sm_indirection2.c | 3 struct foo { struct 8 struct foo *foo; argument 11 struct foo *get_foo(struct bar *bar) in get_foo() 13 return bar->foo; in get_foo() 18 struct foo *f = bar->foo; in frob() 24 struct foo *f = get_foo(bar); in test() 28 __smatch_implied(bar->foo->a); in test()
|
H A D | sm_inline3.c | 5 struct foo { struct 9 void my_func(struct foo *p) in my_func() argument 15 struct foo *my_pointer; 19 struct foo foo; in test() local 22 my_func(&foo); in test() 25 __smatch_implied(foo.a); in test() 26 __smatch_implied(foo.b); in test()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.utf8probefunc.ksh | 21 cat > foo.c <<EOF 25 foo() 33 foo(); 37 if ! gcc -m32 -S -o foo.orig.s foo.c ; then 45 cat foo.orig.s | sed 's/foo/foø/g' > foo.s 46 gcc -m32 -o foo foo.s 49 probefunc)}' -qc ./foo ; then
|