up icon indicating copy to clipboard operation
up copied to clipboard

Up by "level" or "name" breaks when there is a space in the path

Open Asheq opened this issue 5 years ago • 4 comments

Environment Info: I'm on BASH_VERSION: 4.4.19(1)-release

up 4 up <partial-name>

These don't work if there is a space anywhere in the path.

Spaces occasionally show up in the file system I'm working in, so I hope this is something you can fix. Thanks for this awesome shell script!

Asheq avatar Apr 23 '19 22:04 Asheq

Actually, it works. You need to add an escape character \ before the space.
If the partial-name is dir4 new, then you type up dir4\ new.

However, the tab completion doesn't work for every partial-name containing a space.

imambungo avatar Jul 24 '19 04:07 imambungo

Does not work with spaces: spaces

Works with out spaces: no-spaces

Asheq avatar Jul 25 '19 20:07 Asheq

Oh, sorry. You're right, it works on zsh but when I tried it on bash, it doesn't work.

imambungo avatar Jul 27 '19 06:07 imambungo

PR #8 didn't fully resolve this issue. Reopening.

shannonmoeller avatar Aug 24 '19 08:08 shannonmoeller