Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command failed if directory contains blank spaces #14

Open
Rick1125 opened this issue Sep 1, 2021 · 0 comments
Open

command failed if directory contains blank spaces #14

Rick1125 opened this issue Sep 1, 2021 · 0 comments

Comments

@Rick1125
Copy link

Rick1125 commented Sep 1, 2021

if directory contains blank spaces, foo string will contains backslash to escape these spaces,
it will fail when execute command cd $foo,

my recommandation is:
builtin cd (echo $foo|sed -e 's/\//')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant