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

syntax: simplify most literal index expressions within arithmetic #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scop
Copy link
Member

@scop scop commented Sep 24, 2022

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