Searched defs:foo (Results 1 - 13 of 13) sorted by relevance

/ast/src/cmd/ksh93/tests/
H A Dattributes.sh90 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 function
[all...]
H A Dreturn.sh38 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 Dsubstring.sh30 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 function
[all...]
H A Dbasic.sh87 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() function
[all...]
H A Dsignal.sh286 foo() { return 0; } function
287 trap foo EXIT
H A Dpath.sh133 > foo
134 chmod 755 foo
165 for cmd in date foo
189 for cmd in date foo
228 then err_exit '(PATH=$PWD/bin foo) does not find $PWD/bin/foo'
243 typeset foo=$(PATH=/xyz:/abc :)
269 getconf UNIVERSE - att # override sticky default 'UNIVERSE = foo'
325 function foo function
329 [[ $(whence -p foo)
[all...]
H A Dsubshell.sh38 z.foo=( [one]=hello [two]=(x=3 y=4) [three]=hi)
51 typeset -A foo=(
67 z.foo[three]=good
68 [[ ${z.foo[three]} == good ]] || err_exit 'associative array assignment in subshell not working'
73 z.foo[two]=ok
74 [[ ${z.foo[two]} == ok ]] || err_exit 'associative array assignment to compound variable in subshell not working'
81 foo=( qqq=abc rrr=def)
86 unset x.foo
87 [[ ${x.foo.qqq} ]] && err_exit 'x.foo
238 function foo function
525 function foo function
[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 != '' ]]
141 then err_exit '$foo no
177 function foo.get function
427 function foo function
554 function foo.set function
[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
222 function foo function
431 function foo function
[all...]
H A Dtypes.sh62 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...]
H A Dfunctions.sh39 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 function
155 function foo function
184 function foo function
189 function foo function
206 function foo function
349 function foo function
774 function foo function
876 function foo function
904 function foo function
1022 function foo function
1066 function foo function
1081 function foo function
1104 function foo function
1140 function foo function
1160 function foo function
1183 function foo function
1195 function foo function
[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
250 function foo function
[all...]
/ast/src/cmd/ksh93/sh/
H A Dnvtype.c1416 Fields_t foo[]= variable
1580 tp = nv_mkstruct("stat_t", sizeof(struct stat), foo);

Completed in 64 milliseconds