Skip to content

fix: refactor array assignments with manual cur filtering #1087

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

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

akinomyoga
Copy link
Collaborator

@akinomyoga akinomyoga commented Jan 1, 2024

Waiting for #1084 and #1085.

This is ready.

The changes in this PR are related to the array assignments with the maunal cur filtering.

For example, some of the existing codes perform the filtering by | grep "^$cur". However, this does not work when $cur contains special characters of the regular expressions. We try to replace such a code with the regular filtering by the _comp_compgen_split. (This may change the existing behavior when the user actually expects the filtering by the regular expressions.)

Some of the codes seem to have a reason for the manual filtering. I keep the existing manual filtering for such a case, but we might need some discussions to switch to the filtering by _comp_compgen.

@akinomyoga akinomyoga changed the title [DraftPR] fix: refactor array assignments with manual cur filtering fix: refactor array assignments with manual cur filtering Jan 14, 2024
@akinomyoga akinomyoga marked this pull request as ready for review January 14, 2024 11:29
@scop scop merged commit 8030f21 into scop:master Feb 1, 2024
@akinomyoga akinomyoga deleted the _comp_split branch February 1, 2024 20:52
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.

2 participants