Home
last modified time | relevance | path

Searched refs:foo (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A Dlilly.ok1 ### 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 DT.lilly23 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
32 foo!=bar
[all …]
H A Dlilly.progs1 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}
70 {if(split($0,foo,/\+=/))print $0}
71 {if(split($0,foo,/\*=/))print $0}
72 {if(split($0,foo,/-=/))print $0}
73 {if(split($0,foo,/\/=/))print $0}
74 {if(split($0,foo,/%=/))print $0}
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Darrays.sh89 unset foo
93 foo=''
100 unset foo
101 foo[0]=foo
102 foo[3]=bar
103 unset foo[0]
104 unset foo[3]
108 unset foo
109 foo[3]=bar
110 foo[0]=foo
[all …]
H A Dattributes.sh90 x=$(foo=abc $SHELL <<!
91 foo=bar
104 readonly $a=foo
105 if [[ $b != foo ]]
135 unset -f foo
136 function foo function
143 foo 1
147 foo
153 unset foo
154 foo=bar
[all …]
H A Dcomvar.sh38 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.bar=7
[all …]
H A Dnameref.sh36 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.child} != ${bar.child} ]]
54 .foo=top
55 .foo.bar=next
[all …]
H A Dfunctions.sh39 integer foo=33
45 1) print -r - "$foo" "$bar";;
47 3) typeset foo=foo
49 print -r - "$foo" "$bar";;
51 typeset foo=20;;
71 if [[ $(bar=foo foobar 1) != '33 foo' ]]
74 if [[ $bar == foo ]]
83 if [[ $foo != 36 ]]
117 unset -f foo
118 function foo function
[all …]
H A Dcase.sh32 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 Dquoting2.sh101 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 Dalias.sh34 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' ]]
56 unalias foo || err_exit "unalias foo failed"
57 alias foo 2> /dev/null && err_exit "alias for non-existent alias foo returns true" alias
61 if [[ $(bar) != foo ]]
73 alias foo=echo alias
[all …]
H A Dvariables.sh117 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 != '' ]]
144 if [[ $foo != bar ]]
[all …]
H A Dappend.sh54 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[0].x} == 3 ]] || err_exit 'compound append to index array unsets existing variables'
[all …]
H A Dbasic.sh87 print hi > .foo
105 if (command > foo\\abc) 2> /dev/null
106 then set -- foo*
126 bar=foo
127 eval foo=\$bar
128 if [[ $foo != foo ]]
133 if [[ $foo != 'foo bar' ]]
151 print foo
159 print foo
174 x=$( (print foo) ; (print bar) )
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.basename.d.out4 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/bar///baz/\") is \"baz\"; expected \"`basename "/foo/bar///baz/"`"\"
15 if [ `dirname "/foo/bar///baz/"` != "/foo/bar" ]; then
16 echo "dirname(\"/foo/bar///baz/\") is \"/foo/bar\"; expected \"`dirname "/foo/bar///baz/"`"\"
19 if [ `basename "/foo/bar/baz/"` != "baz" ]; then
20 echo "basename(\"/foo/bar/baz/\") is \"baz\"; expected \"`basename "/foo/bar/baz/"`"\"
23 if [ `dirname "/foo/bar/baz/"` != "/foo/bar" ]; then
[all …]
H A Dtst.cleanpath.d.out1 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 Dsimple-src.c36 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 Dsimple.out2 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 Dt.sub02 {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 Dtest-impl.c16 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 Dclause.d28 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 Dsm_get_user1.c9 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 Dsm_indirection2.c3 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 Dsm_inline3.c5 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 Dtst.utf8probefunc.ksh21 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

12345678910>>...24