Read arrays cleanly
This commit is contained in:
parent
aa92f5c88a
commit
445e653d22
2 changed files with 5 additions and 4 deletions
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue