Release Notes

busybox-w32 version FRP-3532-g01a256149 was released on 2020-07-13. It is no longer current. For other release notes see:

Shell performance

A number of internal changes have been made to the shell with the aim of improving performance. In a specific test case the time taken to run the BusyBox test suite was reduced by 43% compared to the previous release.

The main change is a reduction in the number of processes that need to be created. The shell creates a new process every time it runs a command, starts a subshell or adds an item to a pipeline. On Linux this can be rather efficient because of the separation between the fork(2) and exec(2) system calls. Windows doesn't have this distinction: both fork() and exec() have to be emulated using CreateProcess() which is notoriously slow.

In this release the execution of commands built into the BusyBox binary is handled without the need for a call to exec().

Here are micro-benchmarks for how long it takes to run certain commands in the previous release (FRP-3466), the current release (FRP-3532) and on Linux. All times are in milliseconds.

CommandFRP-3466  FRP-3532  Linux
echo 10.0030.0030.002
seq 17.013.610.69
seq 1 | grep 111.983.701.17
seq 1 | grep 1 | grep 1  17.626.042.04

Further notes on performance.

Wildcards

Wildcards on the BusyBox executable's command line are now handled differently. As a Windows binary busybox.exe might be expected to process wildcards using Microsoft's C runtime. However, doing this can cause incorrect operation of the BusyBox shell which does its own wildcard processing. To avoid such problems the default builds of busybox-w32 disabled Windows' globbing and a separate build with Windows' globbing enabled was provided.

In this release the default has been changed such that Windows' globbing is applied when busybox-w32 is run from a Command Prompt but subsequent child processes have Windows globbing disabled. It is hoped that this will provide the correct behaviour both for users who run BusyBox applets from the Command Prompt and those who use the BusyBox shell.

If Windows' globbing isn't required it can be disabled at compile-time by turning off the GLOBBING option. Alternatively it can be disabled at run-time by setting the environment variable BB_GLOBBING to 0.

(GitHub issues #172 and #187)

ANSI escape sequences

There is an incompatibility in the way the printf applet outputs text and the code to handle ANSI escape sequences. This results in escape sequences being output literally instead of processed as expected.

printf has been modified to output text in a manner compatible with handling of ANSI escape sequences in two specific cases:

With these changes the following now produces the expected result:
$ RESET='\033[0m'
$ printf '\033[31m%s%b\n' hello $RESET
hello
(GitHub issue #189)

File attributes

Additional support for Windows file attributes:

Bug fixes

Changes imported from upstream

busybox-w32 has been synchronised with upstream BusyBox. There are minor fixes to awk and dpkg but no new features.