Searched refs:abc (Results 1 - 20 of 20) sorted by relevance

/ast/src/cmd/ksh93/tests/
H A Dnamespace.sh34 foo=abc
36 typeset -A z=([abc]=qqq)
70 typeset -A z=([qqq]=abc)
76 [[ $(fun) == 'global fun abc' ]] || err_exit 'global fun run from namespace not working'
79 [[ ${z[qqq]} == abc ]] || err_exit 'local array element not correct'
80 [[ ${z[abc]} == '' ]] || err_exit 'global array element should not be visible when local element exists'
96 [[ $(fn) == 'global fn abc' ]] || err_exit 'fn outside namespace should run global function'
98 [[ ${z[abc]} == qqq ]] || err_exit 'global associative array should not be affected by definiton in namespace'
101 [[ $(xfun) == 'xfun global abc' ]] || err_exit 'global function on FPATH failed'
102 [[ $(run $foo) == 'global prog abc' ]] || err_exi
[all...]
H A Dquoting2.sh41 if [[ \a\b\c\*\|\"\ \\ != 'abc*|" \' ]]
47 if [[ $(print -r - 'abc*|" \') != 'abc*|" \' ]]
50 if [[ $(print -r - "abc*|\" \\") != 'abc*|" \' ]]
53 if [[ "$(print -r - 'abc*|" \')" != 'abc*|" \' ]]
56 if [[ "$(print -r - "abc*|\" \\")" != 'abc*|" \' ]]
59 if [[ $(print -r - "$(print -r - 'abc*|" \')") !
[all...]
H A Dheredoc.sh82 abc
144 #abc
145 abc
146 EOF) != $'#abc\nabc' ]]
170 x=abc
176 if [[ $($SHELL "$f") != abc ]]
251 abc
253 [[ $got == abc ]] || err_exit 'line continuation at start of buffer not working'
H A Dquoting.sh40 if [[ \a\b\c\*\|\"\ \\ != 'abc*|" \' ]]
46 if [[ $(print -r - 'abc*|" \') != 'abc*|" \' ]]
49 if [[ $(print -r - "abc*|\" \\") != 'abc*|" \' ]]
52 if [[ "$(print -r - 'abc*|" \')" != 'abc*|" \' ]]
55 if [[ "$(print -r - "abc*|\" \\")" != 'abc*|" \' ]]
58 if [[ $(print -r - $(print -r - 'abc*|" \')) !
[all...]
H A Dcomvar.sh213 ( [[ ${z.foo.bar:-abc} == abc ]] 2> /dev/null) || err_exit ':- not working with compound variables'
282 foo.bar=abc
283 [[ $foo == $'(\n\tbar=abc\n)' ]] || err_exit 'typeset -C not working for foo'
321 x=( float x=0 y=1; z=([foo]=abc [bar]=def))
336 z=(foo=abc)
338 [[ $y == *foo=abc* ]] || err_exit 'z not appended to y'
342 x=( foo=(z=abc d=ghi) bar=abc; typeset -A r=([x]=3 [y]=4))
484 typeset -C -A foo1=( abc
[all...]
H A Dfunctions.sh101 abc() print hi function
102 if [[ $(abc) != hi ]]
103 then err_exit 'abc() print hi not working'
105 ( unset -f abc )
106 if [[ $(abc 2>/dev/null) != hi ]]
107 then err_exit 'abc() print hi not working after subshell unset'
236 abc() function
238 then err_exit 'abc() without a function body is not a syntax error'
351 zzz=abc
863 while getopts :abc OPTIO
925 function abc function
[all...]
H A Dsubstring.sh68 if [[ ${string1%+(abc)} != "$base/abcabc" ]]
69 then err_exit "string1%+(abc)"
71 if [[ ${string1%%+(abc)} != "$base/" ]]
72 then err_exit "string1%%+(abc)"
101 foo=abc
102 if [[ ${foo#a[b*} != abc ]]
103 then err_exit "abc#a[b*} != abc"
105 if [[ ${foo//[0-9]/bar} != abc ]]
108 foo='(abc)'
[all...]
H A Dio.sh115 print "echo abc" > close1
118 if [[ $x != "abc" ]]
251 command exec 3<# *abc*
320 abc
329 [[ $a == abc ]] || err_exit 'read -N3 here-document not working'
334 [[ $a == abc ]] || err_exit 'read -n3 here-document not working'
336 [[ $a == abc ]] || err_exit 'read -N3 from pipe not working'
360 exp=abc
397 'abc' 'd' 'ab cd' 'ab cd' \
H A Dbuiltins.sh174 if [[ $(abc: for i in foo bar;do print $i;break abc;done) != foo ]]
277 if [[ $(printf '%H\n' $'<>"& \'\tabc') != '&lt;&gt;&quot;&amp;&nbsp;&apos;&#9;abc' ]]
280 if [[ $(printf '%(html)q\n' $'<>"& \'\tabc') != '&lt;&gt;&quot;&amp;&nbsp;&apos;&#9;abc' ]]
283 if [[ $( printf 'foo://ab_c%(url)q\n' $'<>"& \'\tabc') != 'foo://ab_c%3C%3E%22%26%20%27%09abc' ]]
292 if [[ $(printf '%..:c\n' abc) != a:b:c ]]
295 if [[ $(printf '%..*c\n' : abc) != a:b:c ]]
298 if [[ $(printf '%..:s\n' abc def ) != abc:def ]]
301 if [[ $(printf '%..*s\n' : abc de
[all...]
H A Dbracket.sh241 $SHELL -c '[[ abc =~ a(b)c ]]' 2> /dev/null || err_exit '[[ abc =~ a(b)c ]] fails'
242 $SHELL -xc '[[ abc =~ \babc\b ]]' 2> /dev/null || err_exit '[[ abc =~ \babc\b ]] fails'
243 [[ abc == ~(E)\babc\b ]] || err_exit '\b not preserved for ere when not in ()'
244 [[ abc == ~(iEi)\babc\b ]] || err_exit '\b not preserved for ~(iEi) when not in ()'
321 x=abc
H A Dappend.sh31 x=abc
34 then err_exit 'abc+def != abcdef'
H A Dtypes.sh40 typeset -A aa=([one]=abc [two]=def)
41 typeset -a ia=(abc def)
78 z=abc
86 x=( typeset -a arr=([2]=abc [4]=(x=1 y=def));zz=abc)
H A Dattributes.sh34 r=readonly u=Uppercase l=Lowercase i=22 i8=10 L=abc L5=def uL5=abcdef xi=20
90 x=$(foo=abc $SHELL <<!
233 [[ $x == "abc" ]] || err_exit '-LZ3 not working for value abcd'
234 [[ $x == "abc" ]] || err_exit '-LZ3 not working for value 00abcd'
266 foo=abc
H A Darrays.sh210 foovar1=abc
351 print foo${foo[abc]}
354 [[ $($SHELL -c "typeset -A foo;foo[abc]=abc;$tmp/script") == foo ]] 2> /dev/null || err_exit 'associative arrays not being cleared correctly before scripts'
588 typeset -a foo=(abc=1 def=2)
H A Dglob.sh108 touch a b c d abc abd abe bb bcd ca cb dd de Beware
111 test_glob '<a> <abc> <abd> <abe> <X*>' a* X*
112 test_glob '<a> <abc> <abd> <abe>' \a*
118 test_glob '<a> <abc> <abd> <abe>' a* X*
146 test_glob '<abc> <abd> <abe> <bb> <cb>' [a-c]b*
166 test_glob '<abc>' a[b]c
167 test_glob '<abc>' a["b"]c
168 test_glob '<abc>' a[\b]c
169 test_glob '<abc>' a?c
170 test_case '<match>' 'abc' '
[all...]
H A Dbasic.sh105 if (command > foo\\abc) 2> /dev/null
107 if [[ $1 != 'foo\abc' ]]
108 then err_exit 'foo* does not match foo\abc'
H A Dsubshell.sh81 foo=( qqq=abc rrr=def)
H A Dnameref.sh458 typeset name=abc
H A Dpath.sh243 typeset foo=$(PATH=/xyz:/abc :)
H A Dvariables.sh49 set abc def
54 #set abc def

Completed in 38 milliseconds