Properly split lines with directories with spaces

This commit is contained in:
Lazarus Lazaridis 2018-03-09 01:39:38 +02:00
parent 6c92199e20
commit 36447d94c9

View File

@ -172,8 +172,9 @@ function _goto_cleanup()
read -d '' -r -a matches < ~/.goto
IFS=' '
for i in "${!matches[@]}"; do
IFS=' ' read -r -a match <<< "${matches[$i]}"
read -r -a match <<< "${matches[$i]}"
al="${match[0]}"
dir="${match[*]:1}"