Use unix pipe to capture environment variables (#32136)

The use of `NamedTempFile` in #31799 was not secure and could
potentially cause write permission issues (see [this
comment](https://github.com/zed-industries/zed/issues/29528#issuecomment-2939672433)).
Therefore, it has been replaced with a Unix pipe.

Release Notes:
- N/A
3bed830a1fHaru Kim committed on 6/10/2025, 2:37:43 AM· committed by GitHubparentee2a329
5 files changedLine totals unavailable