Skip to content

syntax: simplify most literal index expressions within arithmetic#1

Open
scop wants to merge 1 commit into
shenv:masterfrom
scop:feat/simplify-arith-index-exp
Open

syntax: simplify most literal index expressions within arithmetic#1
scop wants to merge 1 commit into
shenv:masterfrom
scop:feat/simplify-arith-index-exp

Conversation

@scop

@scop scop commented Sep 24, 2022

Copy link
Copy Markdown
Member

Exclude known problematic/unportable cases involving * and @ instead of all index expressions.

To me, skipping simplifications of all index expressions within arithmetic because there are a few cases where it cannot be done is somewhat unfortunate. I believe the problematic cases are rare in practice, because expressions such as ${!a[*]}, ${#a[*]} where * and @ are commonly present are already (and need to be) skipped due to other reasons besides what's in the index.

Exclude known problematic/unportable cases involving `*` and `@`
instead of all index expressions.

See commit 9c62772 for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant