Always use IFS= for read

This commit is contained in:
Taiki Endo
2026-05-15 10:56:59 +09:00
parent 8b48705aa3
commit b1b1cbb6bf

View File

@@ -478,7 +478,7 @@ fi
tool="${INPUT_TOOL:-}"
tools=()
if [[ -n "${tool}" ]]; then
while read -rd,; do
while IFS= read -rd,; do
tools+=("${REPLY}")
done < <(normalize_comma_or_space_separated "${tool}")
fi
@@ -786,7 +786,7 @@ for tool in "${tools[@]}"; do
if [[ -n "${additional}" ]]; then
component=''
target=''
while read -rd+; do
while IFS= read -rd+; do
case "${REPLY}" in
# Last checked: nightly-2026-05-03
# rustup component list