Browse Source

Escape `cd` calls in Bash's use-on-cd (#323)

This was suggested by @mirabilos
remotes/origin/add-with-shims
Gal Schlezinger 4 years ago committed by GitHub
parent
commit
93b9059f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/shell/bash.rs

4
src/shell/bash.rs

@ -27,8 +27,8 @@ impl Shell for Bash {
fi fi
} }
__fnmcd () { __fnmcd() {
cd "$@" || return $? \cd "$@" || return $?
__fnm_use_if_file_found __fnm_use_if_file_found
} }

Loading…
Cancel
Save