Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(_comp_count_args): perform optarg check also on $3
The check that unconditionally accepts a word by a pattern has been added by commits 75ec298 and 3809d95. However, even if the word matches the specified pattern, if the word is an option argument of the previous option, it should not be counted as an argument. This patch changes the behavior so that it does not treat the word matching $3 as an argument when it is an option argument. The current use case of $3 is only by chmod, where $2 is unspecified, so the behavior is unaffected by this change.
- Loading branch information
1 parent
9bfd760
commit 21d3122
Showing
2 changed files
with
23 additions
and
2 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