# remote: Use last line of \`uname\` and shell output \(\#44165\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 822fc7ef167e7a26358afe7f13d0b05b4df468eb

Requested commit: 822fc7ef167e7a26358afe7f13d0b05b4df468eb

Commit: 822fc7ef167e7a26358afe7f13d0b05b4df468eb

Tree: 180be6a4457116128b0da2727b85ee05767d1ae3

Author: Agus Zubiaga

Committer: GitHub

## Message

```
remote: Use last line of `uname` and shell output (#44165)

We have seen cases (see
https://github.com/zed-industries/zed/issues/43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text
```

## Parents

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

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