-
Notifications
You must be signed in to change notification settings - Fork 81
Wrong behavior when using system commands with non-bash or non-cmd.exe shells #203
Comments
Oh, that's interesting and I completely missed that. 🙃 I'm going to have to sit down and figure that one out. As a workaround, you can do something like:
As a side note, you're writing
obviously |
I don't see the I think it makes sense that Ultimately, I think the |
Ugh, I keep forgetting option differences with watchexec. You're right, there is no |
Ultimately the watchexec runtime will just support running multiple processes natively, so it won't matter. For now, cargo watch tries to approximate it, and, as you've found, sometimes runs into the wall. |
Do you have an idea you'd like to explore? I'd suggest not appending any extra command output when using the |
Right, sorry, an update: as of 5 days ish ago the Watchexec runtime supports this natively (it was not super hard to implement). I've also decided to move Cargo Watch to the newer runtime sooner rather than later. So what will happen is:
However, if you want to, you can put up a PR that does exactly what you've just said, and I'll release that as 8.1.3 asap, with the understanding that exact behaviour will probably change slightly when 9 gets released. |
Workaround will be in 8.2.0 |
I'm attempting to use shells besides those in the title, but there is wrong behavior present in this extension.
In PowerShell or nushell, neither
&&
nor&
are supported. When attempting to use PowerShell v7+,&
causescargo-watch
to spawn a background job instead.When attempting to use the
cmd:trail
form via-- $COMMAND_LINE
, it still uses the wrongly-formed& echo
after the command.platform: Windows 10
cargo: v1.61.0
cargo-watch: v8.1.1
The text was updated successfully, but these errors were encountered: