# Always single-quote directory when cd'ing to get shell env \(\#9145\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f4a86e6feac496f4f5c1ca46e229f04a3896fd19)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f4a86e6feac496f4f5c1ca46e229f04a3896fd19

Requested commit: f4a86e6feac496f4f5c1ca46e229f04a3896fd19

Commit: f4a86e6feac496f4f5c1ca46e229f04a3896fd19

Tree: 0da8b89dc24ef5f7d75b1567e9bf4fb4bf893472

Author: Thorsten Ball

Committer: GitHub

## Message

```
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
```

## Parents

- [597465b0f54718d3acfc91311ba9526679b69572](https://git.cafe/gitcafe/zed/commit/597465b0f54718d3acfc91311ba9526679b69572?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f4a86e6feac496f4f5c1ca46e229f04a3896fd19?format=markdown)
