You are not logged in.
Pages: 1
I've recently decided to try out zsh and the only problem so far is that when i try to execute 'cd Do*' (being in my home directory) , the output is "cd:cd:8: string not in pwd: Documents"
so is there a function or something that can fix it ?
P.S: Sorry if i posted in the wrong section but i am a newbie :))
Offline
I get a slightly different message*, but I think the problem is that you have multiple matches to "Do*". (Probably Documents and Downloads).
Why are you using globbing for cd anyway? I'd just press tab and use autocompletion.
*
$ cd Do*
cd: string not in pwd: DocumentsEdit: related?
Last edited by WorMzy (2014-01-18 21:30:37)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Hmm... works for me. I am using grml-zsh-config in addition to zsh. My ~/.zshrc is in my sig.
Offline
zsh's cd is more powerful than bash's. Look at `man zshbuiltins`. You apparently have exactly two matches for "Do*", so zsh thinks you're trying to use the second form, which performs a substitution on the name of the pwd, but that fails because pwd does not contain "Documents".
I agree that this seems like a weird thing to do. Using tab completion, you would have noticed that the "Do" prefix does not produce a unique match.
Last edited by Raynman (2014-01-18 21:38:32)
Offline
Pages: 1