Support spaces in the editor path
This commit is contained in:
parent
649b01ce1c
commit
d33131cd78
1 changed files with 1 additions and 1 deletions
|
@ -39,6 +39,6 @@ end {
|
|||
if( $Path ) { $arguments = "$arguments" }
|
||||
|
||||
if( $PSCmdlet.ShouldProcess( "Edit ($editor): $arguments" ) ) {
|
||||
Invoke-ExpressionEx -sudo:$sudo $editor "$arguments"
|
||||
Invoke-ExpressionEx -sudo:$sudo "& `"$editor`"" "$arguments"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue