-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(decompress): Wrap $ExtractDir in quotes
#6373
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
base: develop
Are you sure you want to change the base?
Conversation
|
Shouldn't one put the actual path into quotes? Do something like this instead: $ArgList += '-ir!"{0}\*"' -f $ExtractDirVs. what this PR suggests: $ArgList += '"-ir!$ExtractDir\*"'^ I also think this will not work, as
|
Yes, a simple test can tell that this doesn't work. |
|
Double quotes don’t work here either. All existing double quotes will be removed in Invoke-ExternalCommand. Lines 708 to 714 in b588a06
|
You're right, this patch doesn't work. I must have mixed things up when I was trying different quoting methods and ended up submitting the wrong patch. I'm not very familiar with PowerShell; the key point here is figuring out how to properly quote arbitrary strings in PowerShell command arguments. It's much less obvious to me than in POSIX shells. 😢 |
|
This PR should be closed, as it isn't working as expected. See: #6373 (comment) & #6372 (comment) |
Description
Support spaces in
extract_dir.Motivation and Context
Fix #6372
How Has This Been Tested?
I tested it locally.
Checklist:
developbranch.