diff --git a/src/filepath.sh b/src/filepath.sh index 6106f2b..e62b08c 100644 --- a/src/filepath.sh +++ b/src/filepath.sh @@ -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}}")" ) + dirs=( "${PWD}" $(__enhancd::filepath::get_parent_dirs "${1:-${PWD}}") ) for dir in "${dirs[@]}" do