Skip to content

Commit

Permalink
Localize shell variable REPLY to avoid overwriting users' value (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga authored Jun 12, 2024
1 parent 6c9e540 commit 80e5cb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions argcomplete/bash_completion.d/_python-argcomplete
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ __python_argcomplete_scan_head() {
local file="$1"
local target="$2"

local REPLY
if [[ -n "${ZSH_VERSION-}" ]]; then
read -r -k 1024 -u 0 < "$file";
else
Expand Down

0 comments on commit 80e5cb6

Please sign in to comment.