Skip to content
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

Change quoting on Windows hosts #2748

Merged
merged 2 commits into from
Mar 3, 2021
Merged

Change quoting on Windows hosts #2748

merged 2 commits into from
Mar 3, 2021

Conversation

bwateratmsft
Copy link
Collaborator

@bwateratmsft bwateratmsft commented Mar 3, 2021

Fixes #2739. I tried out the command line that it comes up with--both the stat and ls commands--and each works on both cmd and PowerShell. (Also, of course, I tried it out in the UI)

In theory this should have no effect on Unix but I also validated on my Macbook just to be sure.

@bwateratmsft bwateratmsft requested a review from a team as a code owner March 3, 2021 20:07
@@ -5,7 +5,7 @@
"requires": true,
"packages": {
"": {
"version": "1.10.5-alpha",
"version": "1.11.0",
Copy link
Collaborator Author

@bwateratmsft bwateratmsft Mar 3, 2021

Choose a reason for hiding this comment

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

I have no clue why npm update didn't bump this last time. 🤷‍♂️

@@ -144,7 +144,7 @@ function parseWindowsDirectoryItems(input: string, parentPath: string): Director
export async function listLinuxContainerDirectory(executor: DockerContainerExecutor, parentPath: string): Promise<DirectoryItem[]> {
const commandProvider: DockerExecCommandProvider = shell => {
return shell === 'windows'
? ['/bin/sh', '-c', `"ls -la \"${parentPath}\""`]
? ['/bin/sh', '-c', `"ls -la '${parentPath}'"`]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This matches the quoting that is used for the stat command.

@bwateratmsft bwateratmsft merged commit 3e556db into main Mar 3, 2021
@bwateratmsft bwateratmsft deleted the bmw/spaceFiles branch March 3, 2021 20:51
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants