mirror of
https://github.com/iridakos/goto.git
synced 2025-05-17 07:50:18 -07:00
Properly split lines with directories with spaces
This commit is contained in:
parent
6c92199e20
commit
36447d94c9
@ -172,8 +172,9 @@ function _goto_cleanup()
|
|||||||
|
|
||||||
read -d '' -r -a matches < ~/.goto
|
read -d '' -r -a matches < ~/.goto
|
||||||
|
|
||||||
|
IFS=' '
|
||||||
for i in "${!matches[@]}"; do
|
for i in "${!matches[@]}"; do
|
||||||
IFS=' ' read -r -a match <<< "${matches[$i]}"
|
read -r -a match <<< "${matches[$i]}"
|
||||||
|
|
||||||
al="${match[0]}"
|
al="${match[0]}"
|
||||||
dir="${match[*]:1}"
|
dir="${match[*]:1}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user