/titanic_51/usr/src/lib/libshell/common/tests/ |
H A D | arrays.sh | 89 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 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.child} != ${bar.child} ]] 54 .foo=top 55 .foo.bar=next [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.bar=7 [all …]
|
H A D | attributes.sh | 90 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 D | functions.sh | 36 integer foo=33 42 1) print -r - "$foo" "$bar";; 44 3) typeset foo=foo 46 print -r - "$foo" "$bar";; 48 typeset foo=20;; 68 if [[ $(bar=foo foobar 1) != '33 foo' ]] 71 if [[ $bar == foo ]] 80 if [[ $foo != 36 ]] 114 unset -f foo 115 function foo 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$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' ]] 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 D | quoting2.sh | 100 set -- ${x+foo bar bam} 104 set -- ${x+foo "bar bam"} 108 set -- ${x+foo 'bar bam'} 114 then err_exit '${x+foo $x bam} does not yield three arguments' 118 then err_exit '${x+foo "$x" bam} does not yield three arguments' 130 then err_exit '${x+foo "$x "bam} does not yield two arguments' 166 then err_exit '`eval print \\${foo$x}`' not working 198 [[ "${foo}$" == 'foo$' ]] || err_exit 'foo=foo;"${foo}$" != foo$' 199 [[ "${foo}${foo}$" == 'foofoo$' ]] || err_exit 'foo=foo;"${foo}${foo}$" != foofoo$' 201 [[ "$foo" == ~(Elr)(\\\$|#)\ ]] || err_exit $'\'$ \' not matching RE \\\\\\$|#\'' [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 != '' ]] 144 if [[ $foo != bar ]] [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[0].x} == 3 ]] || err_exit 'compound append to index array unsets existing variables'
|
H A D | basic.sh | 87 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 …]
|
/titanic_51/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...] |
/titanic_51/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_51/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_51/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...] |