Skip to content

Fix breakage to 'PlugUpgrade' under Windows PowerShell.#1331

Merged
junegunn merged 1 commit into
junegunn:masterfrom
tiamat18:master
May 22, 2026
Merged

Fix breakage to 'PlugUpgrade' under Windows PowerShell.#1331
junegunn merged 1 commit into
junegunn:masterfrom
tiamat18:master

Conversation

@tiamat18
Copy link
Copy Markdown
Contributor

Commit 09b7c0e has caused this command to emit an error during its cleanup when run on Windows with 'shell' set to PowerShell.

The cause of the failure is that the cleanup logic passes the command string 'rmdir /s /q' to s:system() (within s:rm_rf()). Before the commit at fault, this command would be written to a batch file and executed by 'cmd.exe'. After the commit, it is passed directly to PowerShell for execution, where 'rmdir' is an alias for 'Remove-Item' and does not support '/s' and '/q' flags.

Describe the details of your PR ...

Commit 09b7c0e has caused this command to emit an error during its
cleanup when run on Windows with 'shell' set to PowerShell.

The cause of the failure is that the cleanup logic passes the command
string 'rmdir /s /q' to `s:system()` (within `s:rm_rf()`). Before the
commit at fault, this command would be written to a batch file and
executed by 'cmd.exe'. After the commit, it is passed directly to
PowerShell for execution, where 'rmdir' is an alias for 'Remove-Item'
and does not support '/s' and '/q' flags.
@junegunn junegunn merged commit e216852 into junegunn:master May 22, 2026
1 check passed
@junegunn
Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants