Lines Matching refs:null

95 then	err_exit 'string length of null element is not 0'
98 then err_exit 'number of elements of null variable foo is not 1'
175 set | grep '^abcdefg$' >/dev/null && err_exit 'empty array variable in set list'
221 then err_exit '${!xxx[@]} should be null'
228 } 2> /dev/null
256 $SHELL -c 'x=(if then else fi)' 2> /dev/null || err_exit 'reserved words in x=() assignment not working'
275 ) 2> /dev/null ||
279 foo[$((10))]=ok 2> /dev/null || err_exit 'arithmetic expression as subscript not working'
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'
353 [[ $($SHELL -c "typeset -A foo;$tmp/script") == foo ]] 2> /dev/null || err_exit 'empty associative arrays not being cleared correctly before scripts'
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'
358 [[ ! ${foo[@]:2} ]] || err_exit '${foo[@]:2} not null'
361 [[ ! ${foo[@]:1} ]] || err_exit '${foo[@]:1} not null'
418 ) == val=4 ]] 2> /dev/null || err_exit 'after reading array[j] and assign array[j] fails'
424 ) == name ]] 2> /dev/null || err_exit 'indexed array in compound variable not working'
443 [[ $($SHELL -c 'typeset -a foo;typeset | grep "foo$"' 2> /dev/null) == *index* ]] || err_exit 'typeset fails for indexed array with no elements'
448 { [[ ${!foo[1].*} == 'foo[1].x foo[1].y' ]] ;} 2> /dev/null || err_exit '${!foo[sub].*} not expanding correctly'
454 $SHELL -c $'x=(foo\n\tbar\nbam\n)' 2> /dev/null || err_exit 'compound array assignment with new-lines not working'
455 $SHELL -c $'x=(foo\n\tbar:\nbam\n)' 2> /dev/null || err_exit 'compound array assignment with labels not working'
456 $SHELL -c $'x=(foo\n\tdone\nbam\n)' 2> /dev/null || err_exit 'compound array assignment with reserved words not working'
457 [[ $($SHELL -c 'typeset -A A; print $(( A[foo].bar ))' 2> /dev/null) == 0 ]] || err_exit 'unset variable not evaluating to 0'