Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

cannot `cd $_` to $_ containing spaces




I made a directory with a space in the name, and tried to cd into it using $_, and failed. Just trying to be a good citizen, I wouldn't be surprised if this is known or somehow a feature.


~ % mkdir ArcGIS\ SDKs

~ % cd $_

cd: string not in pwd: ArcGIS



~ % echo $SHELL

/bin/zsh


~ % uname -a

Darwin XXXXX 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64


~ % zsh --version

zsh 5.7.1 (x86_64-apple-darwin19.0)



Messages sorted by: Reverse Date, Date, Thread, Author