[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#405108: busybox: should have a --list option to list all supported commands



Russell Coker wrote:
> busybox | tail -19 | tr , \\\\n | sed -e "s/ \|\t//"|grep .|grep -v busybox

My version:

TAB="	"

busybox --help | grep -A 100 'Currently defined functions' | \
            tail -n +2 | grep "^$TAB" | sed 's/,/ /g'

> Currently to get a list of the supported commands in busybox I need to use
> the above shell code.  This is ugly and will cause problems if the number of
> lines required changes.
> 
> What we need is a --list command-line option that will display all supported
> options one per line to stdout without any additional commentary.

Seconded.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: