Skip to content

Commit

Permalink
Allow spaces in bash completion results
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Wiles committed May 2, 2017
1 parent 5f2ff4f commit dd6b36a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions click/_bashcomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

COMPLETION_SCRIPT = '''
%(complete_func)s() {
local IFS=$'\n'
COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \\
COMP_CWORD=$COMP_CWORD \\
%(autocomplete_var)s=complete $1 ) )
Expand Down

0 comments on commit dd6b36a

Please sign in to comment.