Release Notes

busybox-w32 version FRP-3466-g53c09d0e1 was released on 2020-05-30. It is no longer current. For other release notes see:

inotifyd applet

The inotifyd applet has been ported to WIN32 and enabled in the default build. inotifyd monitors a directory (or directories) and runs a program every time certain changes occur. If the program is specified as - it reports changes on standard output.

For example, suppose the directory MyDir exists, the file myfile is created in it and the directory is then deleted. This is what inotifyd reports:

   ~ $ inotifyd - MyDir
   n       MyDir   myfile
   d       MyDir   myfile
   x       MyDir

This version of inotifyd is more limited than the one for Linux. It is only possible to monitor directories, not individual files. The program is unable to distinguish between many types of change to files within the directories: all such changes are reported as c.

ANSI escape sequences

By default busybox-w32 uses the Windows console API to emulate terminal escape sequences. These control things like cursor movement and text colours.

The new Windows terminal program and many alternative terminal programs provide direct support for escape sequences. The shell variable BB_SKIP_ANSI_EMULATION allows the default behaviour of busybox-w32 to be changed.

I found that BB_SKIP_ANSI_EMULATION=2 worked well on all terminals I was able to test.

Sparse files

The last release of busybox-w32 changed dd such that the seek=N created a sparse file where possible. Unfortunately this broke the case where seek=N was used in conjunction with conv=notrunc to replace part of a file. This is fixed in the current release.

The following sequence of commands

   ~ $ dd if=/dev/urandom of=myfile bs=64k count=5
   5+0 records in
   5+0 records out
   ~ $ ls -ls myfile
      320 -rw-rw-r--    1 rmy      rmy         327680 May 30 09:59 myfile
   ~ $ dd if=/dev/urandom of=myfile bs=64k count=0 seek=10
   0+0 records in
   0+0 records out
   ~ $ ls -ls myfile
      320 -rw-rw-r--    1 rmy      rmy         655360 May 30 09:59 myfile
   ~ $ dd if=/dev/urandom of=myfile bs=64k count=1 seek=7 conv=notrunc
   1+0 records in
   1+0 records out
   ~ $ ls -ls myfile
      512 -rw-rw-r--    1 rmy      rmy         655360 May 30 09:59 myfile

Shell scripts

Shell scripts may start with the sequence #! to indicate which interpreter to use. Indeed, busybox-w32 checks for this sequence to determine if a text file should be treated as executable.

Many esoteric features of #! are documented in The #! magic, details about the shebang/hash-bang mechanism on various Unix flavours.

Two details of the implementation in busybox-w32 have been changed in this release:

vi applet

The vi text editor now supports the use of regular expressions in searches.

Changes imported from upstream

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