Name Date Size #Lines LOC

..--

READMEH A D25-Apr-2025915 2415

demo_many_options.cH A D25-Apr-2025551 236

demo_number.cH A D25-Apr-2025895 4216

demo_scankey.cH A D25-Apr-20252 KiB7749

demo_utf8towc.cH A D25-Apr-20251.1 KiB5028

hello.cH A D25-Apr-2025889 3910

hostid.cH A D25-Apr-2025579 276

logpath.cH A D25-Apr-20252 KiB7846

skeleton.cH A D25-Apr-20253.3 KiB10647

README

1Example commands
2
3You probably don't want to deploy any of this.
4
5The hello.c and skeleton.c commands provide templates for new commands. When
6writing a new command, copying hello.c or skeleton.c to the new name may provide
7a good starting point. (The minimal staring point is toys/posix/false.c)
8
9  - hello.c is clean and simple, and an easy way to check the behavior of
10    toybox library functions running in command context.
11
12  - skeleton.c demonstrates the option parsing infrastructure and having
13    multiple commands per file.
14
15Some of the commands in here are test infrastructure:
16
17  - logpath.c is optionally used by mkroot.sh and scripts/record-commands
18
19  - demo_* demonstrates infrastructure, allowing tests/demo_*.test to
20    regression test library functions directly.
21
22hostid.c is an obsolete command still in posix and present on some recent
23Linux systems, but not really useful on modern systems.
24