Skip to content

[Bug] hs_persist_state silently ignores associative arrays #4

@lepeuvedic

Description

@lepeuvedic

Summary

Associative arrays are silently ignored by hs_persist_state.

Current behavior

  • local -A amap=([key]=value) persisted via hs_persist_state amap emits no state.
  • Callers receive no warning or error.

Expected behavior

  • Either persist associative arrays or explicitly error out when they are passed.

Severity

Medium.

Notes

  • Associative arrays can be represented as two indexed arrays (keys/values).
  • Indexed arrays can be represented as associative arrays as well, but both are variable-length structures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backward-compatibleChanges that maintain backward compatibilitybugSomething isn't workingbugfixBug fix branch typemediumMedium severity issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions