From 5853e99782e60c1dae5ba9463f7adaff89678af6 Mon Sep 17 00:00:00 2001 From: Lukas Markeffsky <@> Date: Wed, 6 Dec 2023 21:55:33 +0100 Subject: [PATCH] prevent word splitting in bash completion script --- src/etc/cargo.bashcomp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/cargo.bashcomp.sh b/src/etc/cargo.bashcomp.sh index a1e800bc3e37..c0ba62752c0d 100644 --- a/src/etc/cargo.bashcomp.sh +++ b/src/etc/cargo.bashcomp.sh @@ -209,12 +209,12 @@ _get_names_from_array() line=${line##*=} line=${line%%\"} line=${line##*\"} - names+=($line) + names+=("$line") fi fi last_line=$line - done < $manifest + done < "$manifest" echo "${names[@]}" }