Release Notes

busybox-w32 version FRP-4264-gc79f13025 was released on 2021-07-25. It is no longer current. For other release notes see:

Process substitution

Process substitution is a feature of shells such as ksh and bash. This has now been implemented in upstream BusyBox ash and ported to busybox-w32.

Process substitution allows a list of commands to be executed asynchronously and treated as if it were a file. A trivial example is:

   cat <(echo hello)
The echo command is run in a separate process and its output is made available to cat by passing the name of an imaginary file. This is useful if a command can only accept input from files rather than via standard input.

Suppose we wish to compare the contents of two directories. diff can compare two files. One of them can be standard input (specified with a - argument) but the other has to be a file. So we'd need to use at least one temporary file:

   ls dir1 >/tmp/file1
   ls dir2 | diff /tmp/file1 -
With process substitution we can do:
   diff <(ls dir1) <(ls dir2)
It also works for output. Suppose we want to view the output of a script but also save it to a file (GitHub issue #111):
   #!/bin/sh
   exec > >(tee debug.log)
   for i in $(seq 1 10)
   do
      echo "hello world"
   done
   exit

sync applet

The sync applet has been ported and enabled in the default configuration. sync writes all buffered data to the filesystem. The Windows implementation has some limitations:

Still, any script that includes a sync will now run without error.

xz and lzma compression in tar

The xz and lzma implementations in BusyBox only support decompression, not compression. Thus it's possible to decompress a tar file with either of these compression mechanisms but not create one.

tar has been updated so that it now tries to use an external compression program when asked to create a file with xz or lzma compression. A suitable program can be downloaded from tukaani.org. To make it available copy xz.exe to a directory on PATH. For lzma compression make a link from xz.exe to lzma.exe.

(GitHub issue #222)

Bug fixes and enhancements

Changes imported from upstream

busybox-w32 has been synchronised with upstream BusyBox. As a result the following bug fixes and enhancements are available (among others):