Skip to content

Commit

Permalink
fix: parent directory containing spaces (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunal authored Jan 24, 2025
1 parent 8b1f00e commit b0ab182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filepath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ __enhancd::filepath::walk()

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

for dir in "${dirs[@]}"
do
Expand Down

0 comments on commit b0ab182

Please sign in to comment.