aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>2001-04-17 17:09:34 +0000
committerJohn Beppu <beppu@lbox.org>2001-04-17 17:09:34 +0000
commit5d81768cf13a7ecfd5a31e778242a79a0de00d30 (patch)
tree3180e217448ab429defd12b8f6a78425d1b6738c
parenta3045dfd258b1db2e23eeaaeb6735b297a96941e (diff)
downloadbusybox-w32-5d81768cf13a7ecfd5a31e778242a79a0de00d30.tar.gz
busybox-w32-5d81768cf13a7ecfd5a31e778242a79a0de00d30.tar.bz2
busybox-w32-5d81768cf13a7ecfd5a31e778242a79a0de00d30.zip
- usage.h
o echo_example_usage needed to escape some backslashes in an inner quote o find_full_usage missing a \n at the end of the -name line ? getopt_full_usage the -o line has tab issues, but I didn't fix them. o length_example_usage removed some double-quotes that were within an inner quotes o printf_example_usage needed to escape a backslash in an inner quote o sort_example_usage needed to escape some backslashes and double quotes in an inner quote o tftp_full_usage s/nameing/naming/; o umount_full_usage remove colons after options for consistency w/ other full_usage messages o uniq_example_usage needed to escape some backslashes and double quotes in an inner quote - TODO xargs -l ? - docs/autodocifier.pl POD && comment updates - docs/busybox_footer.pod added Larry Doolittle and Sterling Huxley
-rw-r--r--TODO6
-rw-r--r--applets/usage.h24
-rwxr-xr-xdocs/autodocifier.pl25
-rw-r--r--docs/busybox.pod48
-rw-r--r--docs/busybox_footer.pod27
-rw-r--r--include/usage.h24
-rw-r--r--usage.h24
7 files changed, 97 insertions, 81 deletions
diff --git a/TODO b/TODO
index b5e383be7..61127489b 100644
--- a/TODO
+++ b/TODO
@@ -12,7 +12,7 @@ around to it some time. If you have any good ideas, please let me know.
12 12
13* The busybox shell, lash, is really too weak for serious use, although it is 13* The busybox shell, lash, is really too weak for serious use, although it is
14 possible to run many simple systems with it. BusyBox 0.49 was supposed to 14 possible to run many simple systems with it. BusyBox 0.49 was supposed to
15 have a new shell, updated to understand full Bourne grammer. Well, that 15 have a new shell, updated to understand full Bourne grammar. Well, that
16 simply didn't happen in time for the release. A rewrite is in progress 16 simply didn't happen in time for the release. A rewrite is in progress
17 that will result in a new shell that understands the full Bourne grammar. 17 that will result in a new shell that understands the full Bourne grammar.
18 This new shell is being championed by Larry Doolittle 18 This new shell is being championed by Larry Doolittle
@@ -55,4 +55,8 @@ and then start with the biggest things and make them smaller...
55 55
56 du.c probably ought to have an -x switch like GNU du does... 56 du.c probably ought to have an -x switch like GNU du does...
57 57
58-----------------------
59
60xargs could use a -l option
61
58------------------------------------------------------------------ 62------------------------------------------------------------------
diff --git a/applets/usage.h b/applets/usage.h
index 40171fc3d..7bc817fd6 100644
--- a/applets/usage.h
+++ b/applets/usage.h
@@ -338,7 +338,7 @@
338#define echo_example_usage \ 338#define echo_example_usage \
339 "$ echo "Erik is cool"\n" \ 339 "$ echo "Erik is cool"\n" \
340 "Erik is cool\n" \ 340 "Erik is cool\n" \
341 "$ echo -e "Erik\nis\ncool"\n" \ 341 "$ echo -e "Erik\\nis\\ncool"\n" \
342 "Erik\n" \ 342 "Erik\n" \
343 "is\n" \ 343 "is\n" \
344 "cool\n" \ 344 "cool\n" \
@@ -439,7 +439,7 @@
439 "the current directory; default EXPRESSION is '-print'\n" \ 439 "the current directory; default EXPRESSION is '-print'\n" \
440 "\nEXPRESSION may consist of:\n" \ 440 "\nEXPRESSION may consist of:\n" \
441 "\t-follow\t\tDereference symbolic links.\n" \ 441 "\t-follow\t\tDereference symbolic links.\n" \
442 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ 442 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" \
443 "\t-print\t\tPrint (default and assumed).\n" \ 443 "\t-print\t\tPrint (default and assumed).\n" \
444 USAGE_FIND_TYPE( \ 444 USAGE_FIND_TYPE( \
445 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ 445 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
@@ -822,7 +822,7 @@
822#define length_full_usage \ 822#define length_full_usage \
823 "Prints out the length of the specified STRING." 823 "Prints out the length of the specified STRING."
824#define length_example_usage \ 824#define length_example_usage \
825 "$ length "Hello"\n" \ 825 "$ length Hello\n" \
826 "5\n" 826 "5\n"
827 827
828#define ln_trivial_usage \ 828#define ln_trivial_usage \
@@ -1204,7 +1204,7 @@
1204 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \ 1204 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
1205 "Where FORMAT controls the output exactly as in C printf." 1205 "Where FORMAT controls the output exactly as in C printf."
1206#define printf_example_usage \ 1206#define printf_example_usage \
1207 "$ printf "Val=%d\n" 5\n" \ 1207 "$ printf "Val=%d\\n" 5\n" \
1208 "Val=5\n" 1208 "Val=5\n"
1209 1209
1210#define ps_trivial_usage \ 1210#define ps_trivial_usage \
@@ -1366,7 +1366,7 @@
1366#define sort_full_usage \ 1366#define sort_full_usage \
1367 "Sorts lines of text in the specified files" 1367 "Sorts lines of text in the specified files"
1368#define sort_example_usage \ 1368#define sort_example_usage \
1369 "$ echo -e "e\nf\nb\nd\nc\na" | sort\n" \ 1369 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
1370 "a\n" \ 1370 "a\n" \
1371 "b\n" \ 1371 "b\n" \
1372 "c\n" \ 1372 "c\n" \
@@ -1543,7 +1543,7 @@
1543 USAGE_TFTP_PUT( \ 1543 USAGE_TFTP_PUT( \
1544 "\tput\tPut local file SOURCE to server DEST.\n" \ 1544 "\tput\tPut local file SOURCE to server DEST.\n" \
1545 ) \ 1545 ) \
1546 "\nWhen nameing a server, use the syntax \"server:file\"." 1546 "\nWhen naming a server, use the syntax \"server:file\"."
1547 1547
1548#define touch_trivial_usage \ 1548#define touch_trivial_usage \
1549 "[-c] file [file ...]" 1549 "[-c] file [file ...]"
@@ -1599,11 +1599,11 @@
1599 "[flags] filesystem|directory" 1599 "[flags] filesystem|directory"
1600#define umount_full_usage \ 1600#define umount_full_usage \
1601 "Unmount file systems\n" \ 1601 "Unmount file systems\n" \
1602 "\nFlags:\n" "\t-a:\tUnmount all file systems" \ 1602 "\nFlags:\n" "\t-a\tUnmount all file systems" \
1603 USAGE_MTAB(" in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries") \ 1603 USAGE_MTAB(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \
1604 "\n\t-r:\tTry to remount devices as read-only if mount is busy" \ 1604 "\n\t-r\tTry to remount devices as read-only if mount is busy" \
1605 USAGE_MOUNT_FORCE("\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)") \ 1605 USAGE_MOUNT_FORCE("\n\t-f\tForce filesystem umount (i.e. unreachable NFS server)") \
1606 USAGE_MOUNT_LOOP("\n\t-l:\tDo not free loop device (if a loop device has been used)") 1606 USAGE_MOUNT_LOOP("\n\t-l\tDo not free loop device (if a loop device has been used)")
1607#define umount_example_usage \ 1607#define umount_example_usage \
1608 "$ umount /dev/hdc1 \n" 1608 "$ umount /dev/hdc1 \n"
1609 1609
@@ -1633,7 +1633,7 @@
1633 "\t-d\tonly print duplicate lines\n" \ 1633 "\t-d\tonly print duplicate lines\n" \
1634 "\t-u\tonly print unique lines" 1634 "\t-u\tonly print unique lines"
1635#define uniq_example_usage \ 1635#define uniq_example_usage \
1636 "$ echo -e "a\na\nb\nc\nc\na" | sort | uniq\n" \ 1636 "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
1637 "a\n" \ 1637 "a\n" \
1638 "b\n" \ 1638 "b\n" \
1639 "c\n" 1639 "c\n"
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index 2bf7cd8a1..d753300c1 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -62,12 +62,12 @@ sub pod_for_usage {
62 } 62 }
63 my $full = join("\n", @f1); 63 my $full = join("\n", @f1);
64 64
65 # prepare notes if they exists 65 # prepare notes if they exist
66 my $notes = (defined $usage->{notes}) 66 my $notes = (defined $usage->{notes})
67 ? "$usage->{notes}\n\n" 67 ? "$usage->{notes}\n\n"
68 : ""; 68 : "";
69 69
70 # prepare example if one exists 70 # prepare examples if they exist
71 my $example = (defined $usage->{example}) 71 my $example = (defined $usage->{example})
72 ? 72 ?
73 "Example:\n\n" . 73 "Example:\n\n" .
@@ -107,6 +107,7 @@ sub sgml_for_usage {
107# { 107# {
108# trivial => "...", 108# trivial => "...",
109# full => "...", 109# full => "...",
110# notes => "...",
110# example => "...", 111# example => "...",
111# } 112# }
112my %docs; 113my %docs;
@@ -176,7 +177,13 @@ autodocifier.pl - generate docs for busybox based on usage.h
176 177
177=head1 SYNOPSIS 178=head1 SYNOPSIS
178 179
179autodocifier.pl usage.h > something 180autodocifier.pl [OPTION]... [FILE]...
181
182Example:
183
184 ( cat docs/busybox_header.pod; \
185 docs/autodocifier.pl usage.h; \
186 cat docs/busybox_footer.pod ) > docs/busybox.pod
180 187
181=head1 DESCRIPTION 188=head1 DESCRIPTION
182 189
@@ -186,7 +193,8 @@ Currently, the same content has to be duplicated in 3 places in
186slightly different formats -- F<usage.h>, F<docs/busybox.pod>, and 193slightly different formats -- F<usage.h>, F<docs/busybox.pod>, and
187F<docs/busybox.sgml>. This is tedious, so Perl has come to the rescue. 194F<docs/busybox.sgml>. This is tedious, so Perl has come to the rescue.
188 195
189This script was based on a script by Erik Andersen (andersen@lineo.com). 196This script was based on a script by Erik Andersen <andersen@lineo.com>
197which was in turn based on a script by Mark Whitley <markw@lineo.com>
190 198
191=head1 OPTIONS 199=head1 OPTIONS
192 200
@@ -219,7 +227,7 @@ The following is an example of some data this script might parse.
219 #define length_full_usage \ 227 #define length_full_usage \
220 "Prints out the length of the specified STRING." 228 "Prints out the length of the specified STRING."
221 #define length_example_usage \ 229 #define length_example_usage \
222 "$ length "Hello"\n" \ 230 "$ length Hello\n" \
223 "5\n" 231 "5\n"
224 232
225Each entry is a cpp macro that defines a string. The macros are 233Each entry is a cpp macro that defines a string. The macros are
@@ -249,13 +257,14 @@ is disabled. I<REQUIRED>
249=item B<notes> 257=item B<notes>
250 258
251This is documentation that is intended to go in the POD or SGML, but 259This is documentation that is intended to go in the POD or SGML, but
252not be output when a B<-h> is given to a command. To see an example 260not be printed when a B<-h> is given to a command. To see an example
253of notes being used, see init_notes_usage. I<OPTIONAL> 261of notes being used, see init_notes_usage. I<OPTIONAL>
254 262
255=item B<example> 263=item B<example>
256 264
257This should be an example of how the command is acutally used. 265This should be an example of how the command is acutally used.
258I<OPTIONAL> 266This will not be printed when a B<-h> is given to a command -- it
267is inteded only for the POD or SGML documentation. I<OPTIONAL>
259 268
260=back 269=back
261 270
@@ -275,4 +284,4 @@ John BEPPU <beppu@lineo.com>
275 284
276=cut 285=cut
277 286
278# $Id: autodocifier.pl,v 1.20 2001/04/10 00:00:05 kraai Exp $ 287# $Id: autodocifier.pl,v 1.21 2001/04/17 17:09:34 beppu Exp $
diff --git a/docs/busybox.pod b/docs/busybox.pod
index 8e8a5492d..e54ff8290 100644
--- a/docs/busybox.pod
+++ b/docs/busybox.pod
@@ -441,15 +441,17 @@ WORK IN PROGRESS, only usefull for debian-installer
441 441
442=item B<dpkg_deb> 442=item B<dpkg_deb>
443 443
444dpkg_deb [B<-cexX>] file directory 444dpkg_deb [B<-cefItxX>] file [argument]
445 445
446Perform actions on debian packages (.debs) 446Perform actions on debian packages (.debs)
447 447
448Options: 448Options:
449 449
450 -c List contents of filesystem tree (verbose) 450 -c List contents of filesystem tree
451 -l List contents of filesystem tree (.list format) 451 -e Extract control files to [argument] directory
452 -e Extract control files to directory 452 -f Display control field name starting with [argument]
453 -I Display the control filenamed [argument]
454 -t Extract filesystem tree to stdout in tar format
453 -x Exctract packages filesystem tree to directory 455 -x Exctract packages filesystem tree to directory
454 -X Verbose extract 456 -X Verbose extract
455 457
@@ -538,9 +540,7 @@ Example:
538 540
539 $ echo "Erik is cool" 541 $ echo "Erik is cool"
540 Erik is cool 542 Erik is cool
541 $ echo -e "Erik 543 $ echo -e "Erik\nis\ncool"
542 is
543 cool"
544 Erik 544 Erik
545 is 545 is
546 cool 546 cool
@@ -658,7 +658,8 @@ the current directory; default EXPRESSION is 'B<-print>'
658EXPRESSION may consist of: 658EXPRESSION may consist of:
659 659
660 -follow Dereference symbolic links. 660 -follow Dereference symbolic links.
661 -name PATTERN File name (leading directories removed) matches PATTERN. -print Print (default and assumed). 661 -name PATTERN File name (leading directories removed) matches PATTERN.
662 -print Print (default and assumed).
662 663
663 -type X Filetype matches X (where X is one of: f,d,l,b,c,...) 664 -type X Filetype matches X (where X is one of: f,d,l,b,c,...)
664 -perm PERMS Permissions match any of (+NNN); all of (-NNN); 665 -perm PERMS Permissions match any of (+NNN); all of (-NNN);
@@ -1610,8 +1611,7 @@ Where FORMAT controls the output exactly as in C printf.
1610 1611
1611Example: 1612Example:
1612 1613
1613 $ printf "Val=%d 1614 $ printf "Val=%d\n" 5
1614 " 5
1615 Val=5 1615 Val=5
1616 1616
1617------------------------------- 1617-------------------------------
@@ -1840,12 +1840,7 @@ Sorts lines of text in the specified files
1840 1840
1841Example: 1841Example:
1842 1842
1843 $ echo -e "e 1843 $ echo -e "e\nf\nb\nd\nc\na" | sort
1844 f
1845 b
1846 d
1847 c
1848 a" | sort
1849 a 1844 a
1850 b 1845 b
1851 c 1846 c
@@ -2046,7 +2041,7 @@ Commands:
2046 get Get file from server SOURCE and store to local DEST. 2041 get Get file from server SOURCE and store to local DEST.
2047 put Put local file SOURCE to server DEST. 2042 put Put local file SOURCE to server DEST.
2048 2043
2049When nameing a server, use the syntax "server:file". 2044When naming a server, use the syntax "server:file".
2050 2045
2051------------------------------- 2046-------------------------------
2052 2047
@@ -2129,11 +2124,11 @@ Unmount file systems
2129 2124
2130Flags: 2125Flags:
2131 2126
2132 -a: Unmount all file systems in /etc/mtab 2127 -a Unmount all file systems in /etc/mtab
2133 -n: Don't erase /etc/mtab entries 2128 -n Don't erase /etc/mtab entries
2134 -r: Try to remount devices as read-only if mount is busy 2129 -r Try to remount devices as read-only if mount is busy
2135 -f: Force filesystem umount (i.e. unreachable NFS server) 2130 -f Force filesystem umount (i.e. unreachable NFS server)
2136 -l: Do not free loop device (if a loop device has been used) 2131 -l Do not free loop device (if a loop device has been used)
2137 2132
2138Example: 2133Example:
2139 2134
@@ -2179,12 +2174,7 @@ Options:
2179 2174
2180Example: 2175Example:
2181 2176
2182 $ echo -e "a 2177 $ echo -e "a\na\nb\nc\nc\na" | sort | uniq
2183 a
2184 b
2185 c
2186 c
2187 a" | sort | uniq
2188 a 2178 a
2189 b 2179 b
2190 c 2180 c
@@ -2537,4 +2527,4 @@ Enrique Zanardi <ezanardi@ull.es>
2537 2527
2538=cut 2528=cut
2539 2529
2540# $Id: busybox.pod,v 1.100 2001/04/10 18:17:05 andersen Exp $ 2530# $Id: busybox.pod,v 1.101 2001/04/17 17:09:34 beppu Exp $
diff --git a/docs/busybox_footer.pod b/docs/busybox_footer.pod
index d724dc8e8..2ab4e166e 100644
--- a/docs/busybox_footer.pod
+++ b/docs/busybox_footer.pod
@@ -37,16 +37,17 @@ Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
37 37
38=for html <br> 38=for html <br>
39 39
40Edward Betts <edward@debian.org> 40John Beppu <beppu@lineo.com>
41 41
42 expr, hostid, logname, tty, wc, whoami, yes 42 du, head, nslookup, sort, tee, uniq (so Kraai could rewrite them ;-),
43 43 documentation
44=for html <br>
45 44
46John Beppu <beppu@lineo.com> 45=for html <br>
47 46
48 du, head, nslookup, sort, tee, uniq 47Edward Betts <edward@debian.org>
49 48
49 expr, hostid, logname, tty, wc, whoami, yes
50
50=for html <br> 51=for html <br>
51 52
52Brian Candler <B.Candler@pobox.com> 53Brian Candler <B.Candler@pobox.com>
@@ -68,12 +69,24 @@ Dave Cinege <dcinege@psychosis.com>
68 69
69=for html <br> 70=for html <br>
70 71
72Larry Doolittle <ldoolitt@recycle.lbl.gov>
73
74 various fixes, shell rewrite
75
76=for html <br>
77
71Karl M. Hegbloom <karlheg@debian.org> 78Karl M. Hegbloom <karlheg@debian.org>
72 79
73 cp_mv.c, the test suite, various fixes to utility.c, &c. 80 cp_mv.c, the test suite, various fixes to utility.c, &c.
74 81
75=for html <br> 82=for html <br>
76 83
84Sterling Huxley <sterling@europa.com>
85
86 vi (!!!)
87
88=for html <br>
89
77Daniel Jacobowitz <dan@debian.org> 90Daniel Jacobowitz <dan@debian.org>
78 91
79 mktemp.c 92 mktemp.c
@@ -153,4 +166,4 @@ Enrique Zanardi <ezanardi@ull.es>
153 166
154=cut 167=cut
155 168
156# $Id: busybox_footer.pod,v 1.3 2001/04/09 23:27:51 kraai Exp $ 169# $Id: busybox_footer.pod,v 1.4 2001/04/17 17:09:34 beppu Exp $
diff --git a/include/usage.h b/include/usage.h
index 40171fc3d..7bc817fd6 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -338,7 +338,7 @@
338#define echo_example_usage \ 338#define echo_example_usage \
339 "$ echo "Erik is cool"\n" \ 339 "$ echo "Erik is cool"\n" \
340 "Erik is cool\n" \ 340 "Erik is cool\n" \
341 "$ echo -e "Erik\nis\ncool"\n" \ 341 "$ echo -e "Erik\\nis\\ncool"\n" \
342 "Erik\n" \ 342 "Erik\n" \
343 "is\n" \ 343 "is\n" \
344 "cool\n" \ 344 "cool\n" \
@@ -439,7 +439,7 @@
439 "the current directory; default EXPRESSION is '-print'\n" \ 439 "the current directory; default EXPRESSION is '-print'\n" \
440 "\nEXPRESSION may consist of:\n" \ 440 "\nEXPRESSION may consist of:\n" \
441 "\t-follow\t\tDereference symbolic links.\n" \ 441 "\t-follow\t\tDereference symbolic links.\n" \
442 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ 442 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" \
443 "\t-print\t\tPrint (default and assumed).\n" \ 443 "\t-print\t\tPrint (default and assumed).\n" \
444 USAGE_FIND_TYPE( \ 444 USAGE_FIND_TYPE( \
445 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ 445 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
@@ -822,7 +822,7 @@
822#define length_full_usage \ 822#define length_full_usage \
823 "Prints out the length of the specified STRING." 823 "Prints out the length of the specified STRING."
824#define length_example_usage \ 824#define length_example_usage \
825 "$ length "Hello"\n" \ 825 "$ length Hello\n" \
826 "5\n" 826 "5\n"
827 827
828#define ln_trivial_usage \ 828#define ln_trivial_usage \
@@ -1204,7 +1204,7 @@
1204 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \ 1204 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
1205 "Where FORMAT controls the output exactly as in C printf." 1205 "Where FORMAT controls the output exactly as in C printf."
1206#define printf_example_usage \ 1206#define printf_example_usage \
1207 "$ printf "Val=%d\n" 5\n" \ 1207 "$ printf "Val=%d\\n" 5\n" \
1208 "Val=5\n" 1208 "Val=5\n"
1209 1209
1210#define ps_trivial_usage \ 1210#define ps_trivial_usage \
@@ -1366,7 +1366,7 @@
1366#define sort_full_usage \ 1366#define sort_full_usage \
1367 "Sorts lines of text in the specified files" 1367 "Sorts lines of text in the specified files"
1368#define sort_example_usage \ 1368#define sort_example_usage \
1369 "$ echo -e "e\nf\nb\nd\nc\na" | sort\n" \ 1369 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
1370 "a\n" \ 1370 "a\n" \
1371 "b\n" \ 1371 "b\n" \
1372 "c\n" \ 1372 "c\n" \
@@ -1543,7 +1543,7 @@
1543 USAGE_TFTP_PUT( \ 1543 USAGE_TFTP_PUT( \
1544 "\tput\tPut local file SOURCE to server DEST.\n" \ 1544 "\tput\tPut local file SOURCE to server DEST.\n" \
1545 ) \ 1545 ) \
1546 "\nWhen nameing a server, use the syntax \"server:file\"." 1546 "\nWhen naming a server, use the syntax \"server:file\"."
1547 1547
1548#define touch_trivial_usage \ 1548#define touch_trivial_usage \
1549 "[-c] file [file ...]" 1549 "[-c] file [file ...]"
@@ -1599,11 +1599,11 @@
1599 "[flags] filesystem|directory" 1599 "[flags] filesystem|directory"
1600#define umount_full_usage \ 1600#define umount_full_usage \
1601 "Unmount file systems\n" \ 1601 "Unmount file systems\n" \
1602 "\nFlags:\n" "\t-a:\tUnmount all file systems" \ 1602 "\nFlags:\n" "\t-a\tUnmount all file systems" \
1603 USAGE_MTAB(" in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries") \ 1603 USAGE_MTAB(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \
1604 "\n\t-r:\tTry to remount devices as read-only if mount is busy" \ 1604 "\n\t-r\tTry to remount devices as read-only if mount is busy" \
1605 USAGE_MOUNT_FORCE("\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)") \ 1605 USAGE_MOUNT_FORCE("\n\t-f\tForce filesystem umount (i.e. unreachable NFS server)") \
1606 USAGE_MOUNT_LOOP("\n\t-l:\tDo not free loop device (if a loop device has been used)") 1606 USAGE_MOUNT_LOOP("\n\t-l\tDo not free loop device (if a loop device has been used)")
1607#define umount_example_usage \ 1607#define umount_example_usage \
1608 "$ umount /dev/hdc1 \n" 1608 "$ umount /dev/hdc1 \n"
1609 1609
@@ -1633,7 +1633,7 @@
1633 "\t-d\tonly print duplicate lines\n" \ 1633 "\t-d\tonly print duplicate lines\n" \
1634 "\t-u\tonly print unique lines" 1634 "\t-u\tonly print unique lines"
1635#define uniq_example_usage \ 1635#define uniq_example_usage \
1636 "$ echo -e "a\na\nb\nc\nc\na" | sort | uniq\n" \ 1636 "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
1637 "a\n" \ 1637 "a\n" \
1638 "b\n" \ 1638 "b\n" \
1639 "c\n" 1639 "c\n"
diff --git a/usage.h b/usage.h
index 40171fc3d..7bc817fd6 100644
--- a/usage.h
+++ b/usage.h
@@ -338,7 +338,7 @@
338#define echo_example_usage \ 338#define echo_example_usage \
339 "$ echo "Erik is cool"\n" \ 339 "$ echo "Erik is cool"\n" \
340 "Erik is cool\n" \ 340 "Erik is cool\n" \
341 "$ echo -e "Erik\nis\ncool"\n" \ 341 "$ echo -e "Erik\\nis\\ncool"\n" \
342 "Erik\n" \ 342 "Erik\n" \
343 "is\n" \ 343 "is\n" \
344 "cool\n" \ 344 "cool\n" \
@@ -439,7 +439,7 @@
439 "the current directory; default EXPRESSION is '-print'\n" \ 439 "the current directory; default EXPRESSION is '-print'\n" \
440 "\nEXPRESSION may consist of:\n" \ 440 "\nEXPRESSION may consist of:\n" \
441 "\t-follow\t\tDereference symbolic links.\n" \ 441 "\t-follow\t\tDereference symbolic links.\n" \
442 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \ 442 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" \
443 "\t-print\t\tPrint (default and assumed).\n" \ 443 "\t-print\t\tPrint (default and assumed).\n" \
444 USAGE_FIND_TYPE( \ 444 USAGE_FIND_TYPE( \
445 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \ 445 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
@@ -822,7 +822,7 @@
822#define length_full_usage \ 822#define length_full_usage \
823 "Prints out the length of the specified STRING." 823 "Prints out the length of the specified STRING."
824#define length_example_usage \ 824#define length_example_usage \
825 "$ length "Hello"\n" \ 825 "$ length Hello\n" \
826 "5\n" 826 "5\n"
827 827
828#define ln_trivial_usage \ 828#define ln_trivial_usage \
@@ -1204,7 +1204,7 @@
1204 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \ 1204 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
1205 "Where FORMAT controls the output exactly as in C printf." 1205 "Where FORMAT controls the output exactly as in C printf."
1206#define printf_example_usage \ 1206#define printf_example_usage \
1207 "$ printf "Val=%d\n" 5\n" \ 1207 "$ printf "Val=%d\\n" 5\n" \
1208 "Val=5\n" 1208 "Val=5\n"
1209 1209
1210#define ps_trivial_usage \ 1210#define ps_trivial_usage \
@@ -1366,7 +1366,7 @@
1366#define sort_full_usage \ 1366#define sort_full_usage \
1367 "Sorts lines of text in the specified files" 1367 "Sorts lines of text in the specified files"
1368#define sort_example_usage \ 1368#define sort_example_usage \
1369 "$ echo -e "e\nf\nb\nd\nc\na" | sort\n" \ 1369 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
1370 "a\n" \ 1370 "a\n" \
1371 "b\n" \ 1371 "b\n" \
1372 "c\n" \ 1372 "c\n" \
@@ -1543,7 +1543,7 @@
1543 USAGE_TFTP_PUT( \ 1543 USAGE_TFTP_PUT( \
1544 "\tput\tPut local file SOURCE to server DEST.\n" \ 1544 "\tput\tPut local file SOURCE to server DEST.\n" \
1545 ) \ 1545 ) \
1546 "\nWhen nameing a server, use the syntax \"server:file\"." 1546 "\nWhen naming a server, use the syntax \"server:file\"."
1547 1547
1548#define touch_trivial_usage \ 1548#define touch_trivial_usage \
1549 "[-c] file [file ...]" 1549 "[-c] file [file ...]"
@@ -1599,11 +1599,11 @@
1599 "[flags] filesystem|directory" 1599 "[flags] filesystem|directory"
1600#define umount_full_usage \ 1600#define umount_full_usage \
1601 "Unmount file systems\n" \ 1601 "Unmount file systems\n" \
1602 "\nFlags:\n" "\t-a:\tUnmount all file systems" \ 1602 "\nFlags:\n" "\t-a\tUnmount all file systems" \
1603 USAGE_MTAB(" in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries") \ 1603 USAGE_MTAB(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \
1604 "\n\t-r:\tTry to remount devices as read-only if mount is busy" \ 1604 "\n\t-r\tTry to remount devices as read-only if mount is busy" \
1605 USAGE_MOUNT_FORCE("\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)") \ 1605 USAGE_MOUNT_FORCE("\n\t-f\tForce filesystem umount (i.e. unreachable NFS server)") \
1606 USAGE_MOUNT_LOOP("\n\t-l:\tDo not free loop device (if a loop device has been used)") 1606 USAGE_MOUNT_LOOP("\n\t-l\tDo not free loop device (if a loop device has been used)")
1607#define umount_example_usage \ 1607#define umount_example_usage \
1608 "$ umount /dev/hdc1 \n" 1608 "$ umount /dev/hdc1 \n"
1609 1609
@@ -1633,7 +1633,7 @@
1633 "\t-d\tonly print duplicate lines\n" \ 1633 "\t-d\tonly print duplicate lines\n" \
1634 "\t-u\tonly print unique lines" 1634 "\t-u\tonly print unique lines"
1635#define uniq_example_usage \ 1635#define uniq_example_usage \
1636 "$ echo -e "a\na\nb\nc\nc\na" | sort | uniq\n" \ 1636 "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
1637 "a\n" \ 1637 "a\n" \
1638 "b\n" \ 1638 "b\n" \
1639 "c\n" 1639 "c\n"