-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area/shell-completionAll shell completionsAll shell completionskind/bugA bug in cobra; unintended behaviorA bug in cobra; unintended behavior
Description
With the merge of the ActiveHelp feature (#1482) I started seeing errors in the tests of https://github.com/marckhouzam/cobra-completion-testing for bash v3 when using descriptions.
Testing things manually:
bash-3.2# ./testprog __complete d
dasharg Wants argument --arg
dir Directive: subdir
:4
Completion ended with directive: ShellCompDirectiveNoFileComp
bash-3.2# ./testprog d
dasharg^IWants argument --arg dir^IDirective: subdir
We can see that the tab character that delimits a description gets somehow mistakenly converted to a ^I
, which breaks the proper display of completion descriptions.
I will be posting a PR to fix this.
Metadata
Metadata
Assignees
Labels
area/shell-completionAll shell completionsAll shell completionskind/bugA bug in cobra; unintended behaviorA bug in cobra; unintended behavior