I asked here how to make cd
protect spaces. Tab completion is great, but sometimes you paste the path from the clipboard so this is useful.
The solution breaks with parentheses however. No matter how you try to escape and protect the input it always returns:
bash: syntax error near unexpected token `('
Is there some way to have it also deal with parentheses? What I want is that when I enter this, it works:
cd My path with spaces (and parentheses)