-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
Bug Report
Current Behavior
Create a manifest with extract_dir
having value like "a - b". The invoked 7z command will break the argument into two parts, like
7z.exe" x <snip> "-ir!a" "- b\*"
which is incorrect.
Expected Behavior
extract_dir
should allow directory with -
in its name.
Additional context/output
The bug is caused by this line:
Line 714 in b588a06
$ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' }) |
-
is actually inside of a unbreakable string, not command line switch.
Possible Solution
Currently I have to comment out the line to make installation work.
System details
Windows version: 11
OS architecture: 64bit
PowerShell version: 7.5.3
Additional software: N/A
Scoop Configuration
I'm using the Scoop 0.5.3.