[BusyBox] Question about internal apps....

David Douthitt ssrat at mailbag.com
Fri Aug 10 09:24:44 UTC 2001


I have this in my Config.h

//Allow the shell to invoke all the compiled in BusyBox applets as if
they
//were shell builtins.  Nice for staticly linking an emergency rescue
shell,
//among other things. Off by default.
// Only relevant if a shell is enabled.
#define BB_FEATURE_SH_STANDALONE_SHELL

Now, I thought that this meant that busybox applets would entirely act
as if internal.  For example, in a system without only busybox installed
with no links except sh, ash, and bash (to ash), if this was on, then
every busybox app would be available to a busybox shell.  However....

# ./busybox sh


BusyBox v0.60.0 (2001.08.09-20:15+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# help

Built-in commands:
-------------------
        . : alias break builtin cd chdir continue eval exec exit export
        false fc hash help jobs let local pwd read readonly return set
        setvar shift times trap true type ulimit umask unalias unset
        wait [ ash busybox cat chgrp chmod chown clear cp cut date dd
        df dmesg du dutmp echo env false fdflush find getopt grep gunzip
        gzip halt head hostname id insmod kill killall ln loadkmap
logger
        ls makedevs md5sum mkdir mkfs.minix mknod mkswap mktemp more
        mount mt mv nslookup ping printf rdate renice rm rmdir rmmod
        sh sort stty swapoff swapon sync tail tar tee test tftp touch
        tr true umount uname uniq update uptime usleep wc which whoami
        xargs zcat

# tftp --help
tftp: No such file or directory
# tftp
tftp: No such file or directory
# ./busybox tftp --help
BusyBox v0.60.0 (2001.08.09-19:06+0000) multi-call binary

Usage: tftp command SOURCE DEST

Transfers a file from/to a tftp server using "octet" mode.

Commands:
        get     Get file from server SOURCE and store to local DEST.
        put     Put local file SOURCE to server DEST.

When naming a server, use the syntax "server:file".

#

This comes as a surprise to me...





More information about the busybox mailing list