-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[builtin/completion_osh] Support SparseArray COMPREPLY and COMP_ARGV (#…
…2216) * [builtin/completion_osh] Support SparseArray COMPREPLY with `compgen -F` * [builtin/completion_osh] Support SparseArray COMP_ARGV with `compadjust` * 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?
- Loading branch information
1 parent
6b0e1ef
commit cdee8ea
Showing
3 changed files
with
65 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters