busybox-w32 version FRP-3025-gc01300361 was released on 2019-03-17. It is no longer current. For other release notes see:
busybox-w32 version FRP-3023-g7f8036d3f was released on 2019-03-16.
sucommand makes it possible to run commands as a different user. A common use is to run commands as root (Administrator).
A limited version of
su has been added to busybox-w32. Without
any arguments it starts a shell with elevated privileges ('as Administrator').
If User Account Control (UAC) is active you'll either need to acknowledge a
UAC prompt or, if your account isn't an Administrator, you'll be asked to
enter the password of another account which is. The shell is started in
a new console window.
su takes a single optional flag,
-c, to specify a
shell command to run. Quite complex shell scripts can be given as the
command. It's recommended that the command is enclosed in double quotes
and that single quotes are used within the command. If the quoting gets
too complicated it probably won't work!
If the command completes without exiting the shell window remains open. To prompt the user to close the shell after the command has finished use something like:
su -c "ls -l; read -p 'Hit return to exit: '; exit"
readlink(2)has been added. As a result:
readlinkapplet has been enabled in the default configuration.
statapplets display the target of symbolic links.
statprovides correct details for symbolic links and their targets.
There is still no support for creating symbolic links.
dpkgapplet has been enabled in the default configuration. This is slightly more useful than
rpmas it maintains a database of installed packages. Still, you'll have trouble finding any relevant packages!
To initialise the package database run these commands:
mkdir -p /var/lib/dpkg/info touch /var/lib/dpkg/status
stat(2)supports additional items of metadata: the inode number, device id and number of hard links. This permits some enhancements:
tarcan detect if an archive is being stored in itself;
findcan support the
lscan display inode numbers;
diffcan detect attempts to compare a file with itself;
duhas better support for hardlinked files;
cpcan detect attempts to copy a file over itself.
$ cd doc<tab>expands to:
$ cd Documents/If a partial file name has been obtained by tab completion the user may wish to complete it by entering a wildcard. However, Unix globbing is normally case sensitive so the expected files may not be matched.
For example, in C:/Windows/System32 there are a number of files starting with various case combinations of 'wwa':
C:/Windows/System32 $ ls Wwa<tab><tab> WwaApi.dll WWanHC.dll WwanRadioManager.dll WWAHost.exe wwaninst.dll wwansvc.dll WWanAPI.dll wwanmm.dll wwapi.dll wwancfg.dll Wwanpref.dll wwanconn.dll wwanprotdim.dll C:/Windows/System32 $ ls Wwa* WwaApi.dll WwanRadioManager.dll Wwanpref.dllThe shell option
nocaseglobchanges globbing to be case insensitive. You may wish to enable this by adding
-o nocaseglobto the command that starts the shell.
echo -en '\e]0;Hello World\007'A similar sequence can be used in the shell prompt to put the current directory in the title:
PS1='\[\e]0;\w\a\]\w \$ '
This may be useful, for example, when drag-and-drop is used to drop a path name from Explorer into a console window.
MANPATHcontain lists of directory names. In Unix the names are separated by a ':' character. In Windows ':' can appear within directory names so busybox-w32 requires the use of ';' as the separator.
The shell enforces this requirement when any of the listed variables is changed.
watchapplets support fractional times. For example,
ddallows the output flag
oflag=append. Note that this works best in conjunction with
conv=notrunc, otherwise the file is truncated before being appended to!