aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/unzip.c2
-rw-r--r--coreutils/env.c12
-rw-r--r--coreutils/expr.c4
-rw-r--r--coreutils/uudecode.c4
-rw-r--r--docs/busybox_footer.pod1
-rw-r--r--editors/sed.c2
-rw-r--r--editors/vi.c9
-rw-r--r--miscutils/microcom.c14
-rw-r--r--networking/vconfig.c12
-rw-r--r--procps/watch.c2
10 files changed, 35 insertions, 27 deletions
diff --git a/archival/unzip.c b/archival/unzip.c
index 66005a43e..fcdda6dfa 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -63,7 +63,7 @@
63//usage: "\n -n Never overwrite files (default: ask)" 63//usage: "\n -n Never overwrite files (default: ask)"
64//usage: "\n -o Overwrite" 64//usage: "\n -o Overwrite"
65//usage: "\n -j Do not restore paths" 65//usage: "\n -j Do not restore paths"
66//usage: "\n -p Print to stdout" 66//usage: "\n -p Write to stdout"
67//usage: "\n -t Test" 67//usage: "\n -t Test"
68//usage: "\n -q Quiet" 68//usage: "\n -q Quiet"
69//usage: "\n -x FILE Exclude FILEs" 69//usage: "\n -x FILE Exclude FILEs"
diff --git a/coreutils/env.c b/coreutils/env.c
index c37c0c2df..4715bf73a 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -39,12 +39,14 @@
39/* http://www.opengroup.org/onlinepubs/007904975/utilities/env.html */ 39/* http://www.opengroup.org/onlinepubs/007904975/utilities/env.html */
40 40
41//usage:#define env_trivial_usage 41//usage:#define env_trivial_usage
42//usage: "[-iu] [-] [name=value]... [PROG ARGS]" 42//usage: "[-i] [-u NAME]... [-] [NAME=VALUE]... [PROG ARGS]"
43// The "-" can occur only once (unlike, say, -i): it terminates option processing,
44// so if it is followed by another "-" arg (or any option-looking arg),
45// that arg will be taken as PROG (or even as NAME=VALUE, example: "-z=QWE").
43//usage:#define env_full_usage "\n\n" 46//usage:#define env_full_usage "\n\n"
44//usage: "Print the current environment or run PROG after setting up\n" 47//usage: "Print current environment or run PROG after setting up environment\n"
45//usage: "the specified environment\n" 48//usage: "\n -, -i Start with empty environment"
46//usage: "\n -, -i Start with an empty environment" 49//usage: "\n -u NAME Remove variable from environment"
47//usage: "\n -u Remove variable from the environment"
48 50
49#include "libbb.h" 51#include "libbb.h"
50 52
diff --git a/coreutils/expr.c b/coreutils/expr.c
index b247f08db..760b081f9 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -45,7 +45,7 @@
45//usage:#define expr_trivial_usage 45//usage:#define expr_trivial_usage
46//usage: "EXPRESSION" 46//usage: "EXPRESSION"
47//usage:#define expr_full_usage "\n\n" 47//usage:#define expr_full_usage "\n\n"
48//usage: "Print the value of EXPRESSION to stdout\n" 48//usage: "Print the value of EXPRESSION\n"
49//usage: "\n" 49//usage: "\n"
50//usage: "EXPRESSION may be:\n" 50//usage: "EXPRESSION may be:\n"
51//usage: " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" 51//usage: " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n"
@@ -63,7 +63,7 @@
63//usage: " ARG1 % ARG2\n" 63//usage: " ARG1 % ARG2\n"
64//usage: " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" 64//usage: " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n"
65//usage: " match STRING REGEXP Same as STRING : REGEXP\n" 65//usage: " match STRING REGEXP Same as STRING : REGEXP\n"
66//usage: " substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" 66//usage: " substr STRING POS LEN Substring of STRING, POS counts from 1\n"
67//usage: " index STRING CHARS Index in STRING where any CHARS is found, or 0\n" 67//usage: " index STRING CHARS Index in STRING where any CHARS is found, or 0\n"
68//usage: " length STRING Length of STRING\n" 68//usage: " length STRING Length of STRING\n"
69//usage: " quote TOKEN Interpret TOKEN as a string, even if\n" 69//usage: " quote TOKEN Interpret TOKEN as a string, even if\n"
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 02b037276..bd7766ef7 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -183,7 +183,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv)
183//usage:#define base32_trivial_usage 183//usage:#define base32_trivial_usage
184//usage: "[-d] [-w COL] [FILE]" 184//usage: "[-d] [-w COL] [FILE]"
185//usage:#define base32_full_usage "\n\n" 185//usage:#define base32_full_usage "\n\n"
186//usage: "Base32 encode or decode FILE to standard output" 186//usage: "Base32 encode or decode FILE to standard output\n"
187//usage: "\n -d Decode data" 187//usage: "\n -d Decode data"
188//usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" 188//usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)"
189////usage: "\n -i When decoding, ignore non-alphabet characters" 189////usage: "\n -i When decoding, ignore non-alphabet characters"
@@ -191,7 +191,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv)
191//usage:#define base64_trivial_usage 191//usage:#define base64_trivial_usage
192//usage: "[-d] [-w COL] [FILE]" 192//usage: "[-d] [-w COL] [FILE]"
193//usage:#define base64_full_usage "\n\n" 193//usage:#define base64_full_usage "\n\n"
194//usage: "Base64 encode or decode FILE to standard output" 194//usage: "Base64 encode or decode FILE to standard output\n"
195//usage: "\n -d Decode data" 195//usage: "\n -d Decode data"
196//usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" 196//usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)"
197////usage: "\n -i When decoding, ignore non-alphabet characters" 197////usage: "\n -i When decoding, ignore non-alphabet characters"
diff --git a/docs/busybox_footer.pod b/docs/busybox_footer.pod
index 92748eb72..0f4810bd3 100644
--- a/docs/busybox_footer.pod
+++ b/docs/busybox_footer.pod
@@ -37,6 +37,7 @@ incorrect, please send in an update.
37=for html <br> 37=for html <br>
38 38
39Emanuele Aina <emanuele.aina@tiscali.it> 39Emanuele Aina <emanuele.aina@tiscali.it>
40
40 run-parts 41 run-parts
41 42
42=for html <br> 43=for html <br>
diff --git a/editors/sed.c b/editors/sed.c
index d3444003e..a6845a979 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -70,7 +70,7 @@
70//usage:#define sed_full_usage "\n\n" 70//usage:#define sed_full_usage "\n\n"
71//usage: " -e CMD Add CMD to sed commands to be executed" 71//usage: " -e CMD Add CMD to sed commands to be executed"
72//usage: "\n -f FILE Add FILE contents to sed commands to be executed" 72//usage: "\n -f FILE Add FILE contents to sed commands to be executed"
73//usage: "\n -i[SFX] Edit files in-place (otherwise sends to stdout)" 73//usage: "\n -i[SFX] Edit files in-place (otherwise write to stdout)"
74//usage: "\n Optionally back files up, appending SFX" 74//usage: "\n Optionally back files up, appending SFX"
75//usage: "\n -n Suppress automatic printing of pattern space" 75//usage: "\n -n Suppress automatic printing of pattern space"
76//usage: "\n -r,-E Use extended regex syntax" 76//usage: "\n -r,-E Use extended regex syntax"
diff --git a/editors/vi.c b/editors/vi.c
index d85cdd98d..beccef4b4 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -181,7 +181,7 @@
181//kbuild:lib-$(CONFIG_VI) += vi.o 181//kbuild:lib-$(CONFIG_VI) += vi.o
182 182
183//usage:#define vi_trivial_usage 183//usage:#define vi_trivial_usage
184//usage: IF_FEATURE_VI_COLON("[-c CMD] ")IF_FEATURE_VI_READONLY("[-R] ")"[FILE]..." 184//usage: IF_FEATURE_VI_COLON("[-c CMD] ")IF_FEATURE_VI_READONLY("[-R] ")"[-H] [FILE]..."
185//usage:#define vi_full_usage "\n\n" 185//usage:#define vi_full_usage "\n\n"
186//usage: "Edit FILE\n" 186//usage: "Edit FILE\n"
187//usage: IF_FEATURE_VI_COLON( 187//usage: IF_FEATURE_VI_COLON(
@@ -191,6 +191,7 @@
191//usage: "\n -R Read-only" 191//usage: "\n -R Read-only"
192//usage: ) 192//usage: )
193//usage: "\n -H List available features" 193//usage: "\n -H List available features"
194// note: non-standard, "vim -H" is Hebrew mode (bidi support)
194 195
195#include "libbb.h" 196#include "libbb.h"
196// Should be after libbb.h: on some systems regex.h needs sys/types.h: 197// Should be after libbb.h: on some systems regex.h needs sys/types.h:
@@ -4748,7 +4749,11 @@ int vi_main(int argc, char **argv)
4748 initial_cmds[0] = xstrndup(p, MAX_INPUT_LEN); 4749 initial_cmds[0] = xstrndup(p, MAX_INPUT_LEN);
4749 } 4750 }
4750#endif 4751#endif
4751 while ((c = getopt(argc, argv, "hCRH" IF_FEATURE_VI_COLON("c:"))) != -1) { 4752 while ((c = getopt(argc, argv,
4753#if ENABLE_FEATURE_VI_CRASHME
4754 "C"
4755#endif
4756 "RHh" IF_FEATURE_VI_COLON("c:"))) != -1) {
4752 switch (c) { 4757 switch (c) {
4753#if ENABLE_FEATURE_VI_CRASHME 4758#if ENABLE_FEATURE_VI_CRASHME
4754 case 'C': 4759 case 'C':
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index 399d4cf7f..97b46342f 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -18,14 +18,14 @@
18//kbuild:lib-$(CONFIG_MICROCOM) += microcom.o 18//kbuild:lib-$(CONFIG_MICROCOM) += microcom.o
19 19
20//usage:#define microcom_trivial_usage 20//usage:#define microcom_trivial_usage
21//usage: "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY" 21//usage: "[-d DELAY_MS] [-t TIMEOUT_MS ] [-s SPEED] [-X] TTY"
22//usage:#define microcom_full_usage "\n\n" 22//usage:#define microcom_full_usage "\n\n"
23//usage: "Copy bytes for stdin to TTY and from TTY to stdout\n" 23//usage: "Copy bytes from stdin to TTY and from TTY to stdout\n"
24//usage: "\n -d Wait up to DELAY ms for TTY output before sending every" 24//usage: "\n -d DELAY Wait up to DELAY ms for TTY output before sending"
25//usage: "\n next byte to it" 25//usage: "\n every next byte to it"
26//usage: "\n -t Exit if both stdin and TTY are silent for TIMEOUT ms" 26//usage: "\n -t TIMEOUT Exit if both stdin and TTY are silent for TIMEOUT ms"
27//usage: "\n -s Set serial line to SPEED" 27//usage: "\n -s SPEED Set serial line to SPEED"
28//usage: "\n -X Disable special meaning of NUL and Ctrl-X from stdin" 28//usage: "\n -X Disable special meaning of NUL and Ctrl-X from stdin"
29 29
30#include "libbb.h" 30#include "libbb.h"
31#include "common_bufsiz.h" 31#include "common_bufsiz.h"
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 4f1fbe280..7e805be9c 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -20,12 +20,12 @@
20//usage: "COMMAND [OPTIONS]" 20//usage: "COMMAND [OPTIONS]"
21//usage:#define vconfig_full_usage "\n\n" 21//usage:#define vconfig_full_usage "\n\n"
22//usage: "Create and remove virtual ethernet devices\n" 22//usage: "Create and remove virtual ethernet devices\n"
23//usage: "\n add IFACE VLAN_ID" 23//usage: "\n add IFACE VLAN_ID"
24//usage: "\n rem VLAN_NAME" 24//usage: "\n rem VLAN_NAME"
25//usage: "\n set_flag IFACE 0|1 VLAN_QOS" 25//usage: "\n set_flag IFACE 0|1 VLAN_QOS"
26//usage: "\n set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS" 26//usage: "\n set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS"
27//usage: "\n set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS" 27//usage: "\n set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS"
28//usage: "\n set_name_type NAME_TYPE" 28//usage: "\n set_name_type NAME_TYPE"
29 29
30#include "libbb.h" 30#include "libbb.h"
31#include <net/if.h> 31#include <net/if.h>
diff --git a/procps/watch.c b/procps/watch.c
index 059eb1dda..1190b29df 100644
--- a/procps/watch.c
+++ b/procps/watch.c
@@ -22,7 +22,7 @@
22//usage: "[-n SEC] [-t] PROG ARGS" 22//usage: "[-n SEC] [-t] PROG ARGS"
23//usage:#define watch_full_usage "\n\n" 23//usage:#define watch_full_usage "\n\n"
24//usage: "Run PROG periodically\n" 24//usage: "Run PROG periodically\n"
25//usage: "\n -n SEC Loop period (default 2)" 25//usage: "\n -n SEC Period (default 2)"
26//usage: "\n -t Don't print header" 26//usage: "\n -t Don't print header"
27//usage: 27//usage:
28//usage:#define watch_example_usage 28//usage:#define watch_example_usage