Release Notes

busybox-w32 version FRP-3578-g359211429 was released on 2020-08-24. It is no longer current. For other release notes see:

Install applet

The install applet has been enabled in the default build. This command copies files to target directories setting permissions and ownership. It's commonly used as part of a build process.
Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST

Copy files and set attributes

        -c      Just copy (default)
        -d      Create directories
        -D      Create leading target directories
        -s      Strip symbol table
        -p      Preserve date
        -o USER Set ownership
        -g GRP  Set group ownership
        -m MODE Set permissions
        -t DIR  Install to DIR
Because file permissions and ownership in Windows differ from Unix it's quite likely that any attempt to set these won't work as expected.

Unix-style executable paths

Scripts written for Unix may include hardcoded references to binaries of the form /bin/sh. It would be convenient if busybox-w32 could handle these without having to change the script.

In this release, if a hardcoded path starts with one of the dirctories /bin, /usr/bin, /sbin or /usr/sbin but the requested binary can't be found the shell will attempt to run the corresponding BusyBox applet instead. This should handle most hardcoded paths automatically.

Nonetheless, some further elaboration is warranted:

Suppose that busybox.exe is copied to C:/bin/sh.exe. If the user's current drive is C: an attempt to run /bin/sh will succeed. However, with the usual Windows interpretation of /bin/sh, it will fail if the current drive is D:

Paths of this form are unique on Unix but treated as relative to the current drive on Windows. The shell has been modified so that such paths are considered to refer to the system drive. This modification extends to commands that handle executable paths (which, type, command), PATH searches and tab-completion.

The command busybox --install -u has been added to create links to applets in the four Unix-style binary directories listed above. However, this shouldn't normally be necessary.

(GitHub issues #195)

Replace backslashes in output from ls

ls, in common with other utilities, outputs filenames supplied on the command line without normalisation:
$ ls -d .//dir////
.//dir////
On Windows this can be a problem if a script attempts to evaluate such output containing backslash separators without proper quoting or escaping. Replacing backslashes with forward slashes is a possible solution but might break scripts which assume the output is identical to the input.

Allow ls to replace backslashes with forward slashes if the environment variable BB_FIX_BACKSLASH is set to 1.

(GitHub issue #196)

Bug fixes

Changes imported from upstream

busybox-w32 has been synchronised with upstream BusyBox. As a result the following bug fixes have been applied: