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
cd: string not in pwd #10092
Comments
Just curious, why are you using a wildcard (cd only takes 1 arg) when [TAB] (still a single character and '*' is actually 2, [SHIFT]-8) should expand to the proper thing? |
but it doesn't expand to more than one |
My own testing shows that not to be the case. Using cd with a wildcard in a directory name that matches a single entry, works. Giving cd multiple arguments gives the error you reported. Again, just use [TAB] - fewer keystrokes and it'll show any additional matches. |
All I did was clone a repo (which has a 1 word name), and couldn't cd into it with a wild card. |
See the
Wasn't there another file or directory starting with |
|
And that is why it is failing which is exactly what we’ve been saying but you refused to read. |
I thought it only picks the first case, sorry for all the trouble 😅 |
Reread all the responses carefully for any indication your expectations match the answers given. You completely avoided trying any of the suggestions. |
Describe the bug
When I run
cd Hurr*
, I get the errorcd: string not in pwd: Hurricano
.Steps to reproduce
cd
into it with *, likecd SomeDir*
, where SomeDir is SomeDirectory.Expected behavior
Expected it to change into the correct directory.
Screenshots and recordings
OS / Distro
Ubuntu 18.04
Zsh version
Zsh 5.4
Terminal emulator
Gnome Terminal
If using WSL on Windows, which version of WSL
No response
Additional context
I use zsh-autocomplete.
The text was updated successfully, but these errors were encountered: