Skip to content

Conversation

@njurui
Copy link
Contributor

@njurui njurui commented Aug 22, 2025

Closes #ISSUE

Release Notes:

  • The environment of original remote dev cannot be changed without sudo because of the behavior of "sh -c". This PR changes "sh -c" to "sh -lc" to let the shell source $HOME/.profile and support customized environment like customized $PATH variable.

@cla-bot
Copy link

cla-bot bot commented Aug 22, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @iryanin on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

1 similar comment
@cla-bot
Copy link

cla-bot bot commented Aug 22, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @iryanin on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Aug 22, 2025

The cla-bot has been summoned, and re-checked this pull request!

@njurui
Copy link
Contributor Author

njurui commented Aug 22, 2025

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Aug 22, 2025
@cla-bot
Copy link

cla-bot bot commented Aug 22, 2025

The cla-bot has been summoned, and re-checked this pull request!

@ConradIrwin ConradIrwin merged commit bf5ed6d into zed-industries:main Aug 26, 2025
21 checks passed
@ConradIrwin
Copy link
Member

Thanks! Looks like ssh does not run a login shell when a command is passed

maxbrunsfeld added a commit that referenced this pull request Sep 3, 2025
maxbrunsfeld added a commit that referenced this pull request Sep 3, 2025
@ConradIrwin
Copy link
Member

FYI, we ended up reverting this here: #37417

maxbrunsfeld added a commit that referenced this pull request Sep 3, 2025
This reverts commit bf5ed6d.

We believe this may be breaking some users whose shell initialization
scripts change the working directory.

Release Notes:

- N/A
notpeter pushed a commit that referenced this pull request Sep 4, 2025
This reverts commit bf5ed6d.

We believe this may be breaking some users whose shell initialization
scripts change the working directory.

Release Notes:

- N/A
notpeter pushed a commit that referenced this pull request Sep 4, 2025
This reverts commit bf5ed6d.

We believe this may be breaking some users whose shell initialization
scripts change the working directory.

Release Notes:

- N/A
tidely pushed a commit to tidely/zed that referenced this pull request Sep 10, 2025
…ffective (zed-industries#36760)

Closes #ISSUE

Release Notes:

- The environment of original remote dev cannot be changed without sudo
because of the behavior of "sh -c". This PR changes "sh -c" to "sh -lc"
to let the shell source $HOME/.profile and support customized
environment like customized $PATH variable.
tidely pushed a commit to tidely/zed that referenced this pull request Sep 10, 2025
…ed-industries#37417)

This reverts commit bf5ed6d.

We believe this may be breaking some users whose shell initialization
scripts change the working directory.

Release Notes:

- N/A
FrGoIs pushed a commit to FrGoIs/zed that referenced this pull request Sep 29, 2025
…ffective (zed-industries#36760)

Closes #ISSUE

Release Notes:

- The environment of original remote dev cannot be changed without sudo
because of the behavior of "sh -c". This PR changes "sh -c" to "sh -lc"
to let the shell source $HOME/.profile and support customized
environment like customized $PATH variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants