Skip to content

Commit 91d3b26

Browse files
akinomyogascop
authored andcommitted
fix(_quote_readline_by_ref): unescape escape sequences using printf
1 parent f85519c commit 91d3b26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bash_completion

+2-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ _quote_readline_by_ref()
554554
if [[ ${!2} == \$\'*\' ]]; then
555555
local value=${!2:2:-1} # Strip beginning $' and ending '.
556556
value=${value//'%'/%%} # Escape % for printf format.
557-
printf -v value %s "$value" # Decode escape sequences of \....
557+
# shellcheck disable=SC2059
558+
printf -v value "$value" # Decode escape sequences of \....
558559
local "$2" && _upvars -v "$2" "$value"
559560
fi
560561
fi

0 commit comments

Comments
 (0)