Skip to content

Commit b0ab182

Browse files
authored
fix: parent directory containing spaces (#229)
1 parent 8b1f00e commit b0ab182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filepath.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ __enhancd::filepath::walk()
1515

1616
# __enhancd::filepath::get_parent_dirs does not return $PWD itself,
1717
# so add it to the array explicitly
18-
dirs=( "${PWD}" $(__enhancd::filepath::get_parent_dirs "${1:-${PWD}}") )
18+
IFS=$'\n' dirs=( "${PWD}" $(__enhancd::filepath::get_parent_dirs "${1:-${PWD}}") )
1919

2020
for dir in "${dirs[@]}"
2121
do

0 commit comments

Comments
 (0)