Use backslash for path displayed on Windows#719
Use backslash for path displayed on Windows#719akainth015 wants to merge 1 commit intoPowerShell:latestw_allfrom
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. |
| * 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.
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-keygenoutputs the following, where the mixed slashes cause confusionThis pull request uses a
_PATH_SEPARATORmacro 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.