Skip to content

Commit 46a7ab6

Browse files
authored
fix: wrap dashes and arguments in single quotes
1 parent 71152e6 commit 46a7ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/powershell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function generate(name: string, exec: string): string {
7171
# Split the command at the first space to separate the program and arguments.
7272
$Program, $Arguments = $Command.Split(" ", 2)
7373
74-
$RequestComp = "& ${exec} complete -- $Arguments"
74+
$RequestComp = "& ${exec} complete '--' '$Arguments'"
7575
__${name}_debug "RequestComp: $RequestComp"
7676
7777
# we cannot use $WordToComplete because it

0 commit comments

Comments
 (0)