Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Array utilities #953

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

[WIP] Array utilities #953

wants to merge 15 commits into from

Commits on Aug 23, 2024

  1. feat(completions/ARRAY): add _comp_xfunc_ARRAY_filter

    Co-authored-by: Christoph Anton Mitterer <[email protected]>
    akinomyoga and calestyo committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    68a02fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e203fec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6eee0e1 View commit details
    Browse the repository at this point in the history
  4. feat: add array utilities

    scop authored and akinomyoga committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    132176d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2326b19 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9bcc0f8 View commit details
    Browse the repository at this point in the history
  7. refactor(ARRAY): avoid using local varnames tmp, i, j, and pattern

    They can hide the array names to store the results.
    akinomyoga committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    1f09e8e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    48a35b5 View commit details
    Browse the repository at this point in the history
  9. fix(_comp_uniq): avoid expanding array subscripts in arith context

    When the array elements contains a confusing value such as
    `arr[10]='1],x*=10,a[2'`, (( tmp["${arr[10]}"] )) would be
    unexpectedly interpreted as ((tmp[1], x *= 10, a[2])) in bash < 5.2.
    We here instead use an independent parameter expansions and
    assignments.
    akinomyoga committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    b907080 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    87d50e3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5fb04e2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5ce056b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eebec3c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c966921 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b345552 View commit details
    Browse the repository at this point in the history