Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
/sshcodePublic archive

Windows#118

Closed
eargollo wants to merge4 commits intocoder:masterfromeargollo:windows
Closed

Windows#118

eargollo wants to merge4 commits intocoder:masterfromeargollo:windows

Conversation

eargollo
Copy link
Contributor

@eargolloeargollo commentedJun 14, 2019
edited
Loading

Copy link
Member

@deansheatherdeansheather left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't have Windows so I'm unable to test the code, but it looks OK other than this.

// Downloads the latest code-server and allows it to be executed.
sshCmdStr:=fmt.Sprintf("ssh %v %v '/usr/bin/env bash'",o.sshFlags,host)
// sshCmdStr := fmt.Sprintf("ssh %v %v /bin/bash -l", o.sshFlags, host)
sshCmdStr:=fmt.Sprintf("ssh %v %v '/usr/bin/env bash -l'",o.sshFlags,host)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The login shell stuff should be in a separate PR as it's unrelated to Git Bash for Windows support.

sshCmdStr:=fmt.Sprintf("ssh %v %v '/usr/bin/env bash -l'",o.sshFlags,host)

sshCmd:=exec.Command("sh","-c",sshCmdStr)
sshCmd:=exec.Command("sh","-l","-c",sshCmdStr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

SSH is called from more places than just this, so if we're going to changesh to a login shell so it reads the profile we should also do this every else.

@eargollo
Copy link
ContributorAuthor

Closing this one to submit two separate PR's. Thanks for comments.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@deansheatherdeansheatherdeansheather requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@eargollo@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp