-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use backslash for path displayed on Windows #719
base: latestw_all
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree |
I have attempted to be conservative about this adjustment and aimed to correct the paths used in the client, and not in the server. I have not rigorously tested these changes. Guidance about what scenarios need to be tested would be appreciated. |
@@ -64,29 +72,29 @@ | |||
* readable by anyone except the user him/herself, though this does not | |||
* contain anything particularly secret. | |||
*/ | |||
#define _PATH_SSH_USER_HOSTFILE "~/" _PATH_SSH_USER_DIR "/known_hosts" | |||
#define _PATH_SSH_USER_HOSTFILE "~" _PATH_SEPARATOR _PATH_SSH_USER_DIR _PATH_SEPARATOR "known_hosts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, a tab character was used here to align the text, but this did not work consistently across the editor and the terminal (the following line did not align in git diff
). I replaced it with spaces so that it is consistent across viewing environments.
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@akainth015 - looks like these changes break the CI during the E2E test setup, can you look into that? Info on running the tests is at https://github.com/PowerShell/Win32-OpenSSH/wiki/Run-OpenSSH-Pester-Tests |
Are there more up-to-date instructions? The commands related to testing, on the wiki page related to testing error as follows.
Based upon this unexpected log message, something is going awry near this line. Once I can find a way to run the tests locally then I would be able to look into it further. |
The Please run |
No dice. I have also tried running the
|
hmm, are you using Windows PowerShell (5.1) or PowerShell core (7.4)? Can you try the following, based on https://github.com/PowerShell/openssh-portable/blob/latestw_all/.azdo/ci.yml#L198: |
I am using PowerShell 7.4.1. The I have also tried in Windows PowerShell 5.1. Here are the results of that.
|
Can you try manually copying both |
PR Summary
Currently,
ssh-keygen
outputs the following, where the mixed slashes cause confusionThis pull request uses a
_PATH_SEPARATOR
macro to separate path elements with\
on Windows, and a/
on other platforms. The new output isto align with what a Windows user would expect to see.
PR Context
The confusion this issue causes is described in issues like this one.