Always single-quote directory when cd'ing to get shell env (#9145)

This avoids us potentially executing code (if someone were to name their
directory `$(echo you-are-pwned > /secure-files)`, for example).

Works with zsh, bash, fish, nushell. Tested locally with all of them.

Release Notes:

- N/A
f4a86e6feaThorsten Ball committed on 3/10/2024, 12:53:24 PM· committed by GitHubparent597465b
2 files changedLine totals unavailable