forked from watchexec/watchexec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMD uses special handling for arguments to passed to /C. Unfortunately, this causes errors with quoted program names in these arguments. This commit implements a workaround: When CMD is requested, we build a std::process::Command and pass the argument to /C using the special std::os::windows::process::CommandExt::raw_arg method. The StdCommand is then converted to a TokioCommand and returned. Once tokio-rs/tokio#5810 is fixed, this workaround can be removed. Fixes watchexec#613
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters