# Fix shell environment loading for Zed installations with spaces in path \(\#32702\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2948e18e0ccdf8da40098992c240a04acde5e00a

Requested commit: 2948e18e0ccdf8da40098992c240a04acde5e00a

Commit: 2948e18e0ccdf8da40098992c240a04acde5e00a

Tree: 4c266461d21e1a4a74ed9a9a1af5ebc4aae50521

Author: Kyle Kelley

Committer: GitHub

## Message

````
Fix shell environment loading for Zed installations with spaces in path (#32702)

Follow-up to: https://github.com/zed-industries/zed/pull/32637

When Zed is installed in a path containing spaces (e.g.,
`/Applications/Zed Nightly.app/Contents/MacOS/zed`), environment
variable loading fails and leaves this in the Zed log:

```
login shell exited with exit status: 127. stdout: "", stderr: "Nightly.app/Contents/MacOS/zed --printenv >&0: /Applications/Zed: No such file or directory"
```

This was not part a release (only broke in nightly), but fixes it the
issue in any case when the path to the Zed.app bundle has a space (e.g.
"Zed Nightly.app")

Release Notes:

- N/A
````

## Parents

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

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