-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Does $! work? #375
Comments
When a Unix shell needs to run a command in the background it:
Windows doesn't have separate busybox-w32 has to work with what's available to it. Thus, when the shell has to execute a background command:
On Unix there are two processes involved, on Windows there are three. On Windows:
(The output of The PID reported for the background command is 3220, but that's the second shell. The PID of the actual command here is 2820. That's what happens when an external program has to be run. As an optimisation, if the second shell finds that the required command is a BusyBox applet it can emulate
There are only two processes and Can it be fixed for external commands? I haven't come up with anything yet. |
I try to run some exe.. myapp.exe & echo $!.
The returned PID is not the exes one, but another busybox.exe instance.
Can it be fixed or isn't $! supported at all?
The text was updated successfully, but these errors were encountered: