| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Previously spawn was returning a process handle which was treated as a
pid in certain circumstances. This resulted in the following failing:
find . -type f | sed xargs -n 1 sed -n '1 p'
It should output the first line of each file but stopped after the
first.
|
|
|
|
|
|
|
|
| |
Make mingw_spawn_applet and mingw_spawn_1 static.
The return value from spawnve is an exit code in synchronous mode
and a process handle in asynchronous mode. Pass these upwards
without interpretation.
|
|
|
|
|
|
|
|
| |
Correctly handle the case where an argument needs to be quoted
and has a backslash as its last character.
The issue was detected by the test "sed a cmd ended by double backslash"
in the BusyBox test suite.
|
| |
|
|
|
|
|
| |
The third argument should be int. We only support positive pid
values.
|
| |
|
| |
|
|
|
|
| |
_cwait requires a process handle, not a pid.
|
|
|
|
|
|
|
| |
Conflicts:
debianutils/which.c
editors/vi.c
libbb/executable.c
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* We only need to quote an argument if it contains whitespace.
* There's no point in quoting ? or * because Windows still expands
them. Anyhow, if the command line comes from a BusyBox shell it will
usually have handled the globbing, so we should turn off Windows
globbing for any wildcard that has made it through the shell without
expansion. This means that BusyBox commands run from cmd.exe won't do
wildcard expansion, though.
* Backslashes only need to be doubled if they occur immediately before
double quotes.
* Double quotes need to be escaped with a backslash.
|
|
|
|
|
|
|
|
|
|
|
| |
There are two changes here. The first, in mingw_spawn_1, removes
a post-increment of argv which should have no effect. The second,
in mingw_spawn, should fix a reported problem with xargs:
https://github.com/pclouds/busybox-w32/issues/19
Basically, 'find . -type f | xargs md5sum' was failing to process the
first file.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
On Linux, procps_scan() relies on /proc, which is obviously
unavailable on Windows.
This implementation currently supports procps_status_t.{pid,comm} only.
|
| |
|
| |
|
|
|
|
|
|
| |
Most of this was extracted from commit
e56b799d6ad8afba4168fffa7218d44c041a72d2
in Git repository.
|
|
|