forked from scop/bash-completion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stub] fix(mount): remove problematic reduction of in-word prefix
With the current implementation, the originally specified options vanish on the tab completion when they are quoted. For example, with the following example, 'abort' will be removed. $ mount -o 'abort',a[TAB] The variable `prev` in this context is originally extracted from `cur`, which is the word after splitting by COMP_WORDBREAKS. This means that an additional splitting should not be needed. Even if special characters are included in `prev`, they must be quoted in order to appear there so should not be considered wordbreaks. The code was originally introduced in commit db8d3ee (2011-01-19), where no context is given.
- Loading branch information
1 parent
6b117a5
commit 576f23d
Showing
1 changed file
with
68 additions
and
3 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