busybox-w32 version FRP-3466-g53c09d0e1 was released on 2020-05-30. It is no longer current. For other release notes see:
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.
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.
BB_SKIP_ANSI_EMULATION is set to 1 ANSI
escapes are always used.
2 the system tries to determine if escape
sequences are supported and uses them if the are; otherwise it falls
back to the console API.
BB_SKIP_ANSI_EMULATION is unset or set to any value
other than 1 or 2 the console API is always used.
I found that BB_SKIP_ANSI_EMULATION=2 worked well on all
terminals I was able to test.
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
#! 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:
PATH is no longer searched for the interpreter.
There appears to be no precendent for doing that in Unix.
#! can be a script. Many
Unices don't support this, but Linux does. To avoid possible issues with
infinite loops the use of scripts as the interpreter is limited to four levels
of nesting.
vi text editor now supports the use of regular expressions
in searches.
grep and unzip but no
new features.