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

[builtin/completion_osh] Support SparseArray COMPREPLY and COMP_ARGV #2216

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

akinomyoga
Copy link
Collaborator

No description provided.

* SparseArray_GetValues is used to obtain comp_argv from the shell
  variable COMP_ARGV.  This ignores all the unset elements and only
  picks up the set elements.  Then the word index would be changed.
  This might not be desired.  Maybe it is better to first convert it
  to BashArray and use the member strs?

* Conversely, when there are unset elements in COMP_ARGV with
  BashArray, doesn't that cause problems in the later AdjustArg?
@akinomyoga akinomyoga force-pushed the SparseArray-compgen branch from df9b56c to 20ecebd Compare January 2, 2025 17:30
@andychu andychu changed the base branch from master to soil-staging January 2, 2025 18:32
@andychu andychu merged commit cdee8ea into soil-staging Jan 2, 2025
18 checks passed
@andychu
Copy link
Contributor

andychu commented Jan 2, 2025

OK thank you, this looks like good progress

@akinomyoga akinomyoga deleted the SparseArray-compgen branch January 2, 2025 18:48
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