annotate toys/Config.in @ 225:b4ec652305df

A bit more documentation on Patch.
author Rob Landley <rob@landley.net>
date Sat, 05 Jan 2008 18:08:17 -0600
parents 37eb3153403f
children 87390c3700c1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
1 menu "Toys"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
2
139
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
3 # Fake config symbol to attach help entry to.
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
4
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
5 config TOYBOX
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
6 bool
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
7 default n
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
8 help
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
9 usage: toybox [command] [arguments...]
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
10
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
11 With no arguments, shows available commands. First argument is
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
12 name of a command to run, followed by any arguments to that command.
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
13
176
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
14 config BASENAME
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
15 bool "basename"
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
16 default y
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
17 help
177
00bbb7f65b6f Remove a few bytes from basename and add 'em back (and more) in the help string.
Rob Landley <rob@landley.net>
parents: 176
diff changeset
18 usage: basename path [suffix]
176
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
19
177
00bbb7f65b6f Remove a few bytes from basename and add 'em back (and more) in the help string.
Rob Landley <rob@landley.net>
parents: 176
diff changeset
20 Print the part of path after the last slash, optionally minus suffix.
176
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
21
48
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
22 config BZCAT
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
23 bool "bzcat"
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
24 default n
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
25 help
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
26 usage: bzcat [filename...]
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
27
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
28 Decompress listed files to stdout. Use stdin if no files listed.
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
29
35
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
30 config CATV
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
31 bool "catv"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
32 default y
35
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
33 help
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
34 usage: catv [-evt] [filename...]
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
35
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
36 Display nonprinting characters as escape sequences. Use M-x for
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
37 high ascii characters (>127), and ^x for other nonprinting chars.
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
38
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
39 -e Mark each newline with $
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
40 -t Show tabs as ^I
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
41 -v Don't use ^x or M-x escapes.
f2c7f0799ebe Add cat -v.
Rob Landley <rob@landley.net>
parents: 34
diff changeset
42
191
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
43 config CHROOT
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
44 bool "chroot"
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
45 default y
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
46 help
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
47 usage: chroot NEWPATH [commandline...]
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
48
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
49 Run command within a new root directory. If no command, run /bin/sh.
7f55c59f5122 Add chroot.
Rob Landley <rob@landley.net>
parents: 189
diff changeset
50
66
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
51 config COUNT
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
52 bool "count"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
53 default y
66
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
54 help
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
55 usage: count
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
56
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
57 Copy stdin to stdout, displaying simple progress indicator to stderr.
d2c7f1cbd7d2 Add count command.
Rob Landley <rob@landley.net>
parents: 48
diff changeset
58
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
59 config DF
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
60 bool "df (disk free)"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
61 default y
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
62 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
63 usage: df [-t type] [FILESYSTEM ...]
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
64
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
65 The "disk free" command, df shows total/used/available disk space for
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
66 each filesystem listed on the command line, or all currently mounted
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
67 filesystems.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
68
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
69 -t type
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
70 Display only filesystems of this type.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
71
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
72 config DF_PEDANTIC
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
73 bool "options -P and -k"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
74 default y
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
75 depends on DF
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
76 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
77 usage: df [-Pk]
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
78
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
79 -P The SUSv3 "Pedantic" option
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
80
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
81 Provides a slightly less useful output format dictated by
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
82 the Single Unix Specification version 3, and sets the
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
83 units to 512 bytes instead of the default 1024 bytes.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
84
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
85 -k Sets units back to 1024 bytes (the default without -P)
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
86
176
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
87 config DIRNAME
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
88 bool "dirname"
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
89 default y
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
90 help
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
91 usage: dirname path
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
92
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
93 Print the part of path up to the last slash.
07533cabeede Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley <rob@landley.net>
parents: 169
diff changeset
94
169
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
95 config DMESG
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
96 bool "dmesg"
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
97 default y
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
98 help
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
99 usage: dmesg [-n level] [-s bufsize] | -c
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
100
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
101 Print or control the kernel ring buffer.
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
102
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
103 -n Set kernel logging level (1-9).
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
104 -s Size of buffer to read (in bytes), default 16384.
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
105 -c Clear the ring buffer after printing.
56034b162074 Implement dmesg.
Rob Landley <rob@landley.net>
parents: 162
diff changeset
106
70
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
107 config ECHO
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
108 bool "echo"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
109 default y
70
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
110 help
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
111 usage: echo [-ne] [args...]
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
112
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
113 Write each argument to stdout, with one space between each, followed
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
114 by a newline.
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
115
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
116 -n No trailing newline.
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
117 -e Process the following escape sequences:
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
118 \\ backslash
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
119 \a alert (beep/flash)
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
120 \b backspace
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
121 \c Stop output here (avoids trailing newline)
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
122 \f form feed
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
123 \n newline
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
124 \r carriage return
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
125 \t horizontal tab
a1b464bbef08 Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley <rob@landley.net>
parents: 66
diff changeset
126 \v vertical tab
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
127
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
128 config FALSE
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
129 bool "false"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
130 default y
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
131 help
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
132 Return nonzero.
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
133
20
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
134 config HELLO
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
135 bool "hello"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
136 default y
20
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
137 help
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
138 A hello world program. You don't need this.
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
139
114
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
140 config MDEV
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
141 bool "mdev"
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
142 default n
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
143 help
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
144 usage: mdev [-s]
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
145
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
146 Create devices in /dev using information from /sys.
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
147
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
148 -s Scan all entries in /sys to populate /dev.
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
149
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
150 config MDEV_CONF
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
151 bool "Configuration file for mdev"
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
152 default n
142
77be1035dbd8 Missing config dependency: The mdev config file should depend on mdev.
Rob Landley <rob@landley.net>
parents: 139
diff changeset
153 depends on MDEV
114
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
154 help
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
155 The mdev config file (/etc/mdev.conf) contains lines that look like:
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
156 hd[a-z][0-9]* 0:3 660
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
157
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
158 Each line must contain three whitespace separated fields. The first
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
159 field is a regular expression matching one or more device names, and
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
160 the second and third fields are uid:gid and file permissions for
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
161 matching devies.
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
162
48
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
163 config MKE2FS
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
164 bool "mke2fs"
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
165 default n
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
166 help
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
167 usage: mke2fs [-Fnq] [-b ###] [-N|i ###] [-m ###] device
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
168
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
169 Create an ext2 filesystem on a block device or filesystem image.
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
170
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
171 -F Force to run on a mounted device
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
172 -n Don't write to device
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
173 -q Quiet (no output)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
174 -b size Block size (1024, 2048, or 4096)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
175 -N inodes Allocate this many inodes
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
176 -i bytes Allocate one inode for every XXX bytes of device
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
177 -m percent Reserve this percent of filesystem space for root user
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
178
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
179 config MKE2FS_JOURNAL
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
180 bool "Journaling support (ext3)"
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
181 default n
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
182 depends on MKE2FS
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
183 help
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
184 usage: [-j] [-J size=###,device=XXX]
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
185
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
186 -j Create journal (ext3)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
187 -J Journal options
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
188 size: Number of blocks (1024-102400)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
189 device: Specify an external journal
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
190
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
191 config MKE2FS_GEN
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
192 bool "Generate (gene2fs)"
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
193 default n
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
194 depends on MKE2FS
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
195 help
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
196 usage: gene2fs [options] device filename
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
197
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
198 The [options] are the same as mke2fs.
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
199
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
200 config MKE2FS_LABEL
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
201 bool "Label support"
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
202 default n
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
203 depends on MKE2FS
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
204 help
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
205 usage: mke2fs [-L label] [-M path] [-o string]
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
206
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
207 -L Volume label
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
208 -M Path to mount point
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
209 -o Created by
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
210
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
211 config MKE2FS_EXTENDED
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
212 bool "Extended options"
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
213 default n
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
214 depends on MKE2FS
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
215 help
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
216 usage: mke2fs [-E stride=###] [-O option[,option]]
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
217
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
218 -E stride= Set RAID stripe size (in blocks)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
219 -O [opts] Specify fewer ext2 option flags (for old kernels)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
220 All of these are on by default (as appropriate)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
221 none Clear default options (all but journaling)
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
222 dir_index Use htree indexes for large directories
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
223 filetype Store file type info in directory entry
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
224 has_journal Set by -j
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
225 journal_dev Set by -J device=XXX
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
226 sparse_super Don't allocate huge numbers of redundant superblocks
691bbc9f7b1b Two unrelated additions I'm working on cross over in this file. In theory I
Rob Landley <rob@landley.net>
parents: 35
diff changeset
227
157
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
228 config MKFIFO
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
229 bool "mkfifo"
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
230 default y
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
231 help
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
232 usage: mkfifo [-m mode] name...
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
233
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
234 Makes a named pipe at name.
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
235
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
236 -m mode The mode of the pipe(s) created by mkfifo. It defaults to 0644.
189
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
237 The format is in octal, optionally preceded by a leading zero.
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
238
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
239 config NETCAT
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
240 bool "netcat"
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
241 default y
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
242 help
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
243 usage: netcat [-iwlp] {IPADDR PORTNUM|-f FILENAME} [-e COMMAND]
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
244
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
245 -e exec the rest of the command line
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
246 -i SECONDS delay after each line sent
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
247 -w SECONDS timeout for connection
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
248 -f filename use file (ala /dev/ttyS0) instead of network
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
249 -l listen for incoming connection (twice for persistent connection)
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
250 -p local port number
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
251 -s local source address
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
252 -q SECONDS quit this many seconds after EOF on stdin.
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
253
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
254 Use -l twice with -e for a quick-and-dirty server.
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
255
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
256 Use "stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho" with
22d22427dec6 Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley <rob@landley.net>
parents: 187
diff changeset
257 netcat -f to connect to a serial port.
157
714f4c051594 Add initial mkfifo implementation
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 147
diff changeset
258
34
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
259 config ONEIT
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
260 bool "oneit"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
261 default y
34
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
262 help
195
9dc48c97d6f9 Add -c option to oneit, to specify console other than /dev/tty0.
Rob Landley <rob@landley.net>
parents: 191
diff changeset
263 usage: oneit [-p] [-c /dev/tty0] command [...]
34
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
264
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
265 A simple init program that runs a single supplied command line with a
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
266 controlling tty (so CTRL-C can kill it).
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
267
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
268 -p Power off instead of rebooting when command exits.
195
9dc48c97d6f9 Add -c option to oneit, to specify console other than /dev/tty0.
Rob Landley <rob@landley.net>
parents: 191
diff changeset
269 -c Which console device to use.
34
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
270
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
271 The oneit command runs the supplied command line as a child process
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
272 (because PID 1 has signals blocked), attached to /dev/tty0, in its
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
273 own session. Then oneit reaps zombies until the child exits, at
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
274 which point it reboots (or with -p, powers off) the system.
c1f4f9101af7 Add oneit.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
275
201
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
276 config PATCH
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
277 bool "patch"
211
24ab6c248503 Patch should be working now, change config default...
Rob Landley <rob@landley.net>
parents: 201
diff changeset
278 default y
201
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
279 help
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
280 usage: patch [-i file] [-p depth] [-Ru]
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
281
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
282 Apply a unified diff to one or more files.
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
283
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
284 -i Input file (defaults=stdin)
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
285 -p number of '/' to strip from start of file paths (default=all)
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
286 -R Reverse patch.
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
287 -u Ignored (only handles "unified" diffs)
5d523752715a Start of "patch" support. Writes to stdout at the moment.
Rob Landley <rob@landley.net>
parents: 195
diff changeset
288
225
b4ec652305df A bit more documentation on Patch.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
289 This version of patch only handles unified diffs, and only modifies
b4ec652305df A bit more documentation on Patch.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
290 a file when all all hunks to that file apply. Patch prints failed
b4ec652305df A bit more documentation on Patch.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
291 hunks to stderr, and exits with nonzero status if any hunks fail.
b4ec652305df A bit more documentation on Patch.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
292
b4ec652305df A bit more documentation on Patch.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
293 A file compared against /dev/null is created/deleted as appropriate.
219
cfa11e043e2b Fix patch to use @@ values and match EOF when fewer trailing than starting
Rob Landley <rob@landley.net>
parents: 212
diff changeset
294
21
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
295 config PWD
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
296 bool "pwd"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
297 default y
21
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
298 help
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
299 usage: pwd
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
300
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
301 The print working directory command prints the current directory.
6475d6c46066 Add pwd. Consolidate toy list information under toylist.h.
Rob Landley <rob@landley.net>
parents: 20
diff changeset
302
115
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
303 config READLINK
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
304 bool "readlink"
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
305 default n
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
306 help
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
307 usage: readlink
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
308
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
309 Show what a symbolic link points to.
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
310
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
311 config READLINK_F
115
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
312 bool "readlink -f"
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
313 default n
132
a5a0ec609a3f Fix READLINK_F dependency.
Rob Landley <rob@landley.net>
parents: 131
diff changeset
314 depends on READLINK
115
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
315 help
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
316 usage: readlink [-f]
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
317
224
37eb3153403f Update help text a bit.
Rob Landley <rob@landley.net>
parents: 219
diff changeset
318 -f Show full cannonical path, with no symlinks in it. Returns
37eb3153403f Update help text a bit.
Rob Landley <rob@landley.net>
parents: 219
diff changeset
319 nonzero if nothing could currently exist at this location.
115
19b5567f0a1b Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
Rob Landley <rob@landley.net>
parents: 114
diff changeset
320
187
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
321 config SHA1SUM
212
6e06d46e9e53 Typo spotted by Adrian Davey.
Rob Landley <rob@landley.net>
parents: 211
diff changeset
322 bool "sha1sum"
187
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
323 default y
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
324 help
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
325 usage: sha1sum [file...]
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
326
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
327 Calculate sha1 hash of files (or stdin).
c983a0af6d4e Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley <rob@landley.net>
parents: 179
diff changeset
328
118
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
329 config SLEEP
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
330 bool "sleep"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
331 default y
118
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
332 help
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
333 usage: sleep SECONDS
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
334
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
335 Wait a decimal integer number of seconds.
93da7cc220e6 Add sleep.
Rob Landley <rob@landley.net>
parents: 116
diff changeset
336
114
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
337 config SYNC
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
338 bool "sync"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
339 default y
114
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
340 help
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
341 usage: sync
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
342
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
343 Write pending cached data to disk (synchronize), blocking until done.
ce6956dfc0cf Add sync and an incomplete version of mdev.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
344
100
c3d1d74d5d8f MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents: 74
diff changeset
345 config TOUCH
c3d1d74d5d8f MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents: 74
diff changeset
346 bool "touch"
147
ec6e13b2495d Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents: 144
diff changeset
347 default y
100
c3d1d74d5d8f MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents: 74
diff changeset
348 help
224
37eb3153403f Update help text a bit.
Rob Landley <rob@landley.net>
parents: 219
diff changeset
349 usage: touch [-acm] [-r FILE] [-t MMDDhhmm] [-l bytes] FILE...
100
c3d1d74d5d8f MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents: 74
diff changeset
350
162
0864aec90026 Add an option to let touch extend or truncate a file and rename the err label to time_error to reduce confusion.
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 159
diff changeset
351 Change file timestamps, ensure file existance and change file length.
100
c3d1d74d5d8f MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents: 74
diff changeset
352
147
ec6e13b2495d Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents: 144
diff changeset
353 -a Only change the access time.
ec6e13b2495d Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents: 144
diff changeset
354 -c Do not create the file if it doesn't exist.
224
37eb3153403f Update help text a bit.
Rob Landley <rob@landley.net>
parents: 219
diff changeset
355 -l Length to truncate (or sparsely extend) file to.
147
ec6e13b2495d Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents: 144
diff changeset
356 -m Only change the modification time.
ec6e13b2495d Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
Rob Landley <rob@landley.net>
parents: 144
diff changeset
357 -r Reference file to take timestamps from.
224
37eb3153403f Update help text a bit.
Rob Landley <rob@landley.net>
parents: 219
diff changeset
358 -t Time to change {a,m}time to.
100
c3d1d74d5d8f MacOS X has a defective sed with no -r.
Rob Landley <rob@landley.net>
parents: 74
diff changeset
359
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
360 config TOYSH
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
361 bool "sh (toysh)"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
362 default y
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
363 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
364 usage: sh [-c command] [script]
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
365
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
366 The toybox command shell. Runs a shell script, or else reads input
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
367 interactively and responds to it.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
368
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
369 -c command line to execute
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
370
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
371 config TOYSH_TTY
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
372 bool "Interactive shell (terminal control)"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
373 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
374 depends on TOYSH
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
375 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
376 Add terminal control to toysh. This is necessary for interactive use,
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
377 so the shell isn't killed by CTRL-C.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
378
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
379 config TOYSH_PROFILE
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
380 bool "Profile support"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
381 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
382 depends on TOYSH_TTY
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
383 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
384 Read /etc/profile and ~/.profile when running interactively.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
385
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
386 Also enables the built-in command "source".
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
387
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
388 config TOYSH_JOBCTL
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
389 bool "Job Control (fg, bg, jobs)"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
390 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
391 depends on TOYSH_TTY
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
392 help
159
3977fecc1b49 Fix typo in toysh tty description.
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 157
diff changeset
393 Add job control to toysh. This lets toysh handle CTRL-Z, and enables
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
394 the built-in commands "fg", "bg", and "jobs".
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
395
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
396 With pipe support, enable use of "&" to run background processes.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
397
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
398 config TOYSH_FLOWCTL
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
399 bool "Flow control (if, while, for, functions)"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
400 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
401 depends on TOYSH
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
402 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
403 Add flow control to toysh. This enables the if/then/else/fi,
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
404 while/do/done, and for/do/done constructs.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
405
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
406 With pipe support, this enables the ability to define functions
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
407 using the "function name" or "name()" syntax, plus curly brackets
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
408 "{ }" to group commands.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
409
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
410 config TOYSH_QUOTES
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
411 bool "Smarter argument parsing (quotes)"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
412 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
413 depends on TOYSH
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
414 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
415 Add support for parsing "" and '' style quotes to the toysh command
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
416 parser, with lets arguments have spaces in them.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
417
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
418
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
419 config TOYSH_WILDCARDS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
420 bool "Wildcards ( ?*{,} )"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
421 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
422 depends on TOYSH_QUOTES
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
423 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
424 Expand wildcards in argument names, ala "ls -l *.t?z" and
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
425 "rm subdir/{one,two,three}.txt".
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
426
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
427 config TOYSH_PROCARGS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
428 bool "Executable arguments ( `` and $() )"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
429 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
430 depends on TOYSH_QUOTES
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
431 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
432 Add support for executing arguments contianing $() and ``, using
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
433 the output of the command as the new argument value(s).
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
434
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
435 (Bash calls this "command substitution".)
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
436
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
437 config TOYSH_ENVVARS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
438 bool "Environment variable support"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
439 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
440 depends on TOYSH_QUOTES
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
441 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
442 Substitute environment variable values for $VARNAME or ${VARNAME},
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
443 and enable the built-in command "export".
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
444
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
445 config TOYSH_LOCALS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
446 bool "Local variables"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
447 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
448 depends on TOYSH_ENVVARS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
449 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
450 Support for local variables, fancy prompts ($PS1), the "set" command,
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
451 and $?.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
452
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
453 config TOYSH_ARRAYS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
454 bool "Array variables"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
455 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
456 depends on TOYSH_LOCALS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
457 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
458 Support for ${blah[blah]} style array variables.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
459
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
460 config TOYSH_PIPES
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
461 bool "Pipes and redirects ( | > >> < << & && | || () ; )"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
462 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
463 depends on TOYSH
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
464 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
465 Support multiple commands on the same command line. This includes
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
466 | pipes, > >> < redirects, << here documents, || && conditional
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
467 execution, () subshells, ; sequential execution, and (with job
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
468 control) & background processes.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
469
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
470 config TOYSH_BUILTINS
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
471 bool "Builtin commands"
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
472 default n
11
66e7b6eaa2e2 The Config files don't need the CONFIG_ prefix.
landley@driftwood
parents: 10
diff changeset
473 depends on TOYSH
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
474 help
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
475 Adds the commands exec, fg, bg, help, jobs, pwd, export, source, set,
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
476 unset, read, alias.
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
477
139
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
478 config EXIT
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
479 bool
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
480 default n
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
481 depends on TOYSH
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
482 help
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
483 usage: exit [status]
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
484
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
485 Exit shell. If no return value supplied on command line, use value
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
486 of most recent command, or 0 if none.
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
487
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
488 config CD
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
489 bool
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
490 default n
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
491 depends on TOYSH
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
492 help
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
493 usage: cd [path]
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
494
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
495 Change current directory. With no arguments, go to $HOME.
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
496
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
497 config CD_P
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
498 bool # "-P support for cd"
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
499 default n
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
500 depends on TOYSH
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
501 help
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
502 usage: cd [-PL]
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
503
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
504 -P Physical path: resolve symlinks in path.
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
505 -L Cancel previous -P and restore default behavior.
fb0745eec453 Add "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley <rob@landley.net>
parents: 132
diff changeset
506
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
507 config TRUE
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
508 bool "true"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
509 default y
116
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
510 help
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
511 Return zero.
a0678c2ae9b8 Add true and false.
Rob Landley <rob@landley.net>
parents: 115
diff changeset
512
179
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
513 config TTY
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
514 bool "tty"
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
515 default y
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
516 help
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
517 Print the filename of the terminal connected to standard input.
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
518
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
519 -s Don't print anything, only return an exit status.
4b683759de51 Add tty applet
Charlie Shepherd <masterdriverz@gentoo.org>
parents: 177
diff changeset
520
20
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
521 config WHICH
25
eb46bb5626cb New option parsing infrastructure (doesn't use getopt). Hook it up to
Rob Landley <rob@landley.net>
parents: 21
diff changeset
522 bool "which"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
523 default y
20
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
524 help
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
525 usage: which [-a] filename ...
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
526
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
527 Search $PATH for executable files matching filename(s).
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
528
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
529 -a Show all matches
3981c96f9285 Implement which. Add hello world to menuconfig. Wrap the various applet main
Rob Landley <rob@landley.net>
parents: 17
diff changeset
530
74
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
531 config YES
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
532 bool "yes"
131
c374094cb60c Change defaults of working commands to yes, so "make defconfig" is more
Rob Landley <rob@landley.net>
parents: 118
diff changeset
533 default y
74
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
534 help
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
535 usage: yes [args...]
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
536
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
537 Repeatedly output line until killed. If no args, output 'y'.
dfe99495acbc Add "yes" command.
Rob Landley <rob@landley.net>
parents: 70
diff changeset
538
10
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
539 endmenu
4d21d59f3206 Add menuconfig, plus some basic Config info, lots of which is just future
landley@driftwood
parents:
diff changeset
540