Read arrays cleanly

This commit is contained in:
Ohad Livne 2026-01-28 02:20:09 +02:00
parent aa92f5c88a
commit 445e653d22
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 5 additions and 4 deletions

View file

@ -63,7 +63,7 @@ fi
editor_cmd="$(default_editor)"
echo "Editing using the command \"${editor_cmd}\""
IFS=' ' read -r -a editor <<< "${editor_cmd}"
IFS=' ' readarray -t editor <<< "${editor_cmd}"
orig_file="$1"
tempfile="$(mktemp)"