diff --git a/goto.bash b/goto.bash index 747fc38..c9aeadf 100644 --- a/goto.bash +++ b/goto.bash @@ -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}"