Searched refs:associative (Results 1 - 2 of 2) sorted by relevance

/ast/src/cmd/ksh93/sh/
H A Dnvtree.c585 int scan,tabs=0,c,more,associative = 0; local
598 if(!(associative =(array_assoc(ap)!=0)))
601 associative=1;
617 if(associative||special)
663 else if(!associative && (ep=strchr(fmtq,'=')))
/ast/src/cmd/ksh93/tests/
H A Darrays.sh186 then err_exit 'initial value not preserved when typecast to associative'
193 then err_exit 'conversion of indexed to associative array failed'
276 err_exit 'exporting associative array not exporting 0-th element'
283 [[ $foo == 0 ]] || err_exit 'zero element of associative array not being set'
304 [[ ${x[two]} == 2 ]] || err_exit 'associative array produce side effects in subshells'
309 [[ ${#x[@]} == 4 ]] || err_exit 'associative array append in subshell error'
311 [[ ${#x[@]} == 3 ]] || err_exit 'associative array append in subshell effects parent'
318 [[ $( ($SHELL -c 'typeset -A var; (IFS=: ; set -A var a:b:c ;print ${var[@]});:' )2>/dev/null) == 'a b c' ]] || err_exit 'change associative to index failed'
327 ) 2> /dev/null && err_exit 'set +A with associative array should be an error'
333 [[ $bam == value ]] && err_exit 'unset associative arra
[all...]

Completed in 858 milliseconds