Skip to content
Myr

Merge pull request #2163 from ashwin153/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Use COMPREPLY instead of COMREPLY in Bash shell completion

authored by David Lord · committed by GitHub · parents 6987b4c, 6f33518 · Browse files · 2 files+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−2 removed

  • other:+5 added−2 removed

2 files+5 added−2 removed

modified:src/click/shell_completion.py+2 added-2 removed
100 unmodified lines
101 for completion in $response; do102 IFS=',' read type value <<< "$completion"103104 if [[ $type == 'dir' ]]; then105 COMREPLY=()105 COMPREPLY=()106 compopt -o dirnames107 elif [[ $type == 'file' ]]; then108 COMREPLY=()108 COMPREPLY=()109 compopt -o default110 elif [[ $type == 'plain' ]]; then111 COMPREPLY+=($value)112 fi
469 unmodified lines
modified:CHANGES.rst+3 added
9 unmodified lines
10- The ``option`` and ``argument`` decorators preserve the type11 annotation of the decorated function. :pr:`2155`12- A callable default value can customize its help text by overriding13 ``__str__`` instead of always showing ``(dynamic)``. :issue:`2099`14- Fix a typo in the Bash completion script that affected file and15 directory completion. If this script was generated by a previous16 version, it should be regenerated. :issue:`2163`171819Version 8.0.320-------------
930 unmodified lines