0.3.0
-
Support for indexed and associative arrays.
The functions
array_get,array_set,assoc_get, andassoc_setcan be used to set or get elements inside an array. -
Compatibility with Bash 5.0 and 5.1
Bash 5.1 modified the order of the
struct arrayfields. This crate checks the running version of Bash to determine where is the field to iterate over the array.
Breaking Changes
- The
RawVariable::array_items()iterator now yields pairs of(index, string), instead of just the string.