-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
backward-compatibleChanges that maintain backward compatibilityChanges that maintain backward compatibilitybugSomething isn't workingSomething isn't workingbugfixBug fix branch typeBug fix branch typemajorMajor severity issueMajor severity issue
Description
Summary
Indexed arrays are persisted as scalars; only the first element survives, with no warning.
Current behavior
local -a items=(one two)persisted viahs_persist_state itemsemits a scalar assignment.- The resulting state restores only
items[0]and drops the rest.
Expected behavior
- Either persist full indexed arrays, or explicitly error out when arrays are passed.
Severity
Major (chosen as the easier of indexed/associative array support to implement first).
Notes
- Associative arrays can be represented as two indexed arrays (keys/values), while indexed arrays can be represented as associative arrays as well.
- Variable-length structures are otherwise difficult to encode without string serialization.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
backward-compatibleChanges that maintain backward compatibilityChanges that maintain backward compatibilitybugSomething isn't workingSomething isn't workingbugfixBug fix branch typeBug fix branch typemajorMajor severity issueMajor severity issue