Files
oak-gpui/crates
Thorsten Ball 7dbcace839 Fix accidentally dropping shell environment variable (#10105)
Previously this code would run the changed commend, take its output,
remove the `marker` from the front and then split on `0` byte.

Problem was that `echo` adds a newline, which we did *NOT* skip. So
whatever `env` printed as the first environment variable would have a
`\n` in front of it.

Instead of setting, say, `HOME`, Zed would set `\nHOME`.

This change fixes the issue by switching to `printf '%s' marker`, which
is more portable than using `echo -n`.

This is related to https://github.com/zed-industries/zed/issues/9786 but
I'm not sure yet whether that fixes it.

Release Notes:

- Fixed Zed sometimes missing environment variables from shell in case
they were the first environment variable listed by `/usr/bin/env`.
2024-04-03 09:34:17 +02:00
..
2024-03-29 21:12:47 -04:00
2024-03-28 18:32:11 +01:00
2024-03-29 13:17:48 -04:00
2024-03-20 15:52:02 +01:00
2024-04-02 20:35:14 -06:00
2024-03-11 10:45:57 +01:00
2024-03-11 10:45:57 +01:00
2024-03-26 16:10:09 -07:00
2024-04-01 17:22:59 -07:00
2024-03-14 17:05:07 -04:00
2024-03-28 18:32:11 +01:00