diff options
| author | Matt Kraai <kraai@debian.org> | 2001-04-10 00:00:05 +0000 |
|---|---|---|
| committer | Matt Kraai <kraai@debian.org> | 2001-04-10 00:00:05 +0000 |
| commit | 4e853560f5c4b240be7562530b53851e2c7a246f (patch) | |
| tree | 85a0f11eccbac035e2141ff21f86409c267f0407 | |
| parent | 2f2da90fd45dc628cecbcf2f545070f89165af55 (diff) | |
| download | busybox-w32-4e853560f5c4b240be7562530b53851e2c7a246f.tar.gz busybox-w32-4e853560f5c4b240be7562530b53851e2c7a246f.tar.bz2 busybox-w32-4e853560f5c4b240be7562530b53851e2c7a246f.zip | |
Fix double quote handling.
| -rwxr-xr-x | docs/autodocifier.pl | 6 | ||||
| -rw-r--r-- | docs/busybox.pod | 158 |
2 files changed, 69 insertions, 95 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index 9133afb98..2bf7cd8a1 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
| @@ -27,8 +27,8 @@ sub beautify { | |||
| 27 | my @line = split("\n", $text); | 27 | my @line = split("\n", $text); |
| 28 | $text = join('', | 28 | $text = join('', |
| 29 | map { | 29 | map { |
| 30 | s/^\s*//; | 30 | s/^\s*"//; |
| 31 | s/"//g; | 31 | s/"\s*$//; |
| 32 | s/%/%%/g; | 32 | s/%/%%/g; |
| 33 | s/\$/\\\$/g; | 33 | s/\$/\\\$/g; |
| 34 | eval qq[ sprintf(qq{$_}) ] | 34 | eval qq[ sprintf(qq{$_}) ] |
| @@ -275,4 +275,4 @@ John BEPPU <beppu@lineo.com> | |||
| 275 | 275 | ||
| 276 | =cut | 276 | =cut |
| 277 | 277 | ||
| 278 | # $Id: autodocifier.pl,v 1.19 2001/04/05 20:03:33 beppu Exp $ | 278 | # $Id: autodocifier.pl,v 1.20 2001/04/10 00:00:05 kraai Exp $ |
diff --git a/docs/busybox.pod b/docs/busybox.pod index 185d22c05..ca3ce97b5 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod | |||
| @@ -230,7 +230,7 @@ Changes the foreground virtual terminal to /dev/ttyN | |||
| 230 | 230 | ||
| 231 | =item B<clear> | 231 | =item B<clear> |
| 232 | 232 | ||
| 233 | clear | 233 | clear |
| 234 | 234 | ||
| 235 | Clear screen. | 235 | Clear screen. |
| 236 | 236 | ||
| @@ -275,9 +275,9 @@ Options: | |||
| 275 | 275 | ||
| 276 | Example: | 276 | Example: |
| 277 | 277 | ||
| 278 | $ echo Hello world | cut -f 1 -d ' ' | 278 | $ echo "Hello world" | cut -f 1 -d ' ' |
| 279 | Hello | 279 | Hello |
| 280 | $ echo Hello world | cut -f 2 -d ' ' | 280 | $ echo "Hello world" | cut -f 2 -d ' ' |
| 281 | world | 281 | world |
| 282 | 282 | ||
| 283 | ------------------------------- | 283 | ------------------------------- |
| @@ -370,7 +370,7 @@ Options: | |||
| 370 | 370 | ||
| 371 | -h print sizes in human readable format (e.g., 1K 243M 2G ) | 371 | -h print sizes in human readable format (e.g., 1K 243M 2G ) |
| 372 | -m print sizes in megabytes | 372 | -m print sizes in megabytes |
| 373 | -k print sizes in kilobytes(default) | 373 | -k print sizes in kilobytes(default) |
| 374 | 374 | ||
| 375 | Example: | 375 | Example: |
| 376 | 376 | ||
| @@ -472,7 +472,7 @@ Options: | |||
| 472 | -s display only a total for each argument | 472 | -s display only a total for each argument |
| 473 | -h print sizes in human readable format (e.g., 1K 243M 2G ) | 473 | -h print sizes in human readable format (e.g., 1K 243M 2G ) |
| 474 | -m print sizes in megabytes | 474 | -m print sizes in megabytes |
| 475 | -k print sizes in kilobytes(default) | 475 | -k print sizes in kilobytes(default) |
| 476 | 476 | ||
| 477 | Example: | 477 | Example: |
| 478 | 478 | ||
| @@ -536,17 +536,17 @@ Options: | |||
| 536 | 536 | ||
| 537 | Example: | 537 | Example: |
| 538 | 538 | ||
| 539 | $ echo Erik is cool | 539 | $ echo "Erik is cool" |
| 540 | Erik is cool | 540 | Erik is cool |
| 541 | $ echo -e Erik | 541 | $ echo -e "Erik |
| 542 | is | 542 | is |
| 543 | cool | 543 | cool" |
| 544 | Erik | 544 | Erik |
| 545 | is | 545 | is |
| 546 | cool | 546 | cool |
| 547 | $ echo Erik | 547 | $ echo "Erik |
| 548 | is | 548 | is |
| 549 | cool | 549 | cool" |
| 550 | Erik | 550 | Erik |
| 551 | is | 551 | is |
| 552 | cool | 552 | cool |
| @@ -609,7 +609,7 @@ of characters matched or 0. | |||
| 609 | 609 | ||
| 610 | =item B<false> | 610 | =item B<false> |
| 611 | 611 | ||
| 612 | false | 612 | false |
| 613 | 613 | ||
| 614 | Return an exit code of FALSE (1). | 614 | Return an exit code of FALSE (1). |
| 615 | 615 | ||
| @@ -630,7 +630,7 @@ Show and modify frame buffer settings | |||
| 630 | Example: | 630 | Example: |
| 631 | 631 | ||
| 632 | $ fbset | 632 | $ fbset |
| 633 | mode 1024x768-76 | 633 | mode "1024x768-76" |
| 634 | # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz | 634 | # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz |
| 635 | geometry 1024 768 1024 768 16 | 635 | geometry 1024 768 1024 768 16 |
| 636 | timings 12714 128 32 16 4 128 4 | 636 | timings 12714 128 32 16 4 128 4 |
| @@ -675,7 +675,7 @@ Example: | |||
| 675 | 675 | ||
| 676 | =item B<free> | 676 | =item B<free> |
| 677 | 677 | ||
| 678 | free | 678 | free |
| 679 | 679 | ||
| 680 | Displays the amount of free and used system memory | 680 | Displays the amount of free and used system memory |
| 681 | 681 | ||
| @@ -686,7 +686,6 @@ Example: | |||
| 686 | Mem: 257628 248724 8904 59644 93124 | 686 | Mem: 257628 248724 8904 59644 93124 |
| 687 | Swap: 128516 8404 120112 | 687 | Swap: 128516 8404 120112 |
| 688 | Total: 386144 257128 129016 | 688 | Total: 386144 257128 129016 |
| 689 | |||
| 690 | 689 | ||
| 691 | ------------------------------- | 690 | ------------------------------- |
| 692 | 691 | ||
| @@ -715,7 +714,7 @@ Options: | |||
| 715 | -a Perform automatic repairs | 714 | -a Perform automatic repairs |
| 716 | -v verbose | 715 | -v verbose |
| 717 | -s Outputs super-block information | 716 | -s Outputs super-block information |
| 718 | -m Activates MINIX-like mode not cleared warnings | 717 | -m Activates MINIX-like "mode not cleared" warnings |
| 719 | -f Force file system check. | 718 | -f Force file system check. |
| 720 | 719 | ||
| 721 | ------------------------------- | 720 | ------------------------------- |
| @@ -741,20 +740,20 @@ Example: | |||
| 741 | $ cat getopt.test | 740 | $ cat getopt.test |
| 742 | #!/bin/sh | 741 | #!/bin/sh |
| 743 | GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \ | 742 | GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \ |
| 744 | -n 'example.busybox' -- $@` | 743 | -n 'example.busybox' -- "$@"` |
| 745 | if [ $? != 0 ] ; then exit 1 ; fi | 744 | if [ $? != 0 ] ; then exit 1 ; fi |
| 746 | eval set -- $GETOPT | 745 | eval set -- "$GETOPT" |
| 747 | while true ; do | 746 | while true ; do |
| 748 | case $1 in | 747 | case $1 in |
| 749 | -a|--a-long) echo Option a ; shift ;; | 748 | -a|--a-long) echo "Option a" ; shift ;; |
| 750 | -b|--b-long) echo Option b, argument `$2' ; shift 2 ;; | 749 | -b|--b-long) echo "Option b, argument `$2'" ; shift 2 ;; |
| 751 | -c|--c-long) | 750 | -c|--c-long) |
| 752 | case $2 in | 751 | case "$2" in |
| 753 | \) echo Option c, no argument; shift 2 ;; | 752 | "") echo "Option c, no argument"; shift 2 ;; |
| 754 | *) echo Option c, argument `$2' ; shift 2 ;; | 753 | *) echo "Option c, argument `$2'" ; shift 2 ;; |
| 755 | esac ;; | 754 | esac ;; |
| 756 | --) shift ; break ;; | 755 | --) shift ; break ;; |
| 757 | *) echo Internal error! ; exit 1 ;; | 756 | *) echo "Internal error!" ; exit 1 ;; |
| 758 | esac | 757 | esac |
| 759 | done | 758 | done |
| 760 | 759 | ||
| @@ -830,7 +829,7 @@ Example: | |||
| 830 | 829 | ||
| 831 | =item B<halt> | 830 | =item B<halt> |
| 832 | 831 | ||
| 833 | halt | 832 | halt |
| 834 | 833 | ||
| 835 | Halt the system. | 834 | Halt the system. |
| 836 | 835 | ||
| @@ -858,7 +857,7 @@ Example: | |||
| 858 | 857 | ||
| 859 | =item B<hostid> | 858 | =item B<hostid> |
| 860 | 859 | ||
| 861 | hostid | 860 | hostid |
| 862 | 861 | ||
| 863 | Print out a unique 32-bit identifier for the machine. | 862 | Print out a unique 32-bit identifier for the machine. |
| 864 | 863 | ||
| @@ -926,7 +925,7 @@ Options: | |||
| 926 | 925 | ||
| 927 | =item B<init> | 926 | =item B<init> |
| 928 | 927 | ||
| 929 | init | 928 | init |
| 930 | 929 | ||
| 931 | Init is the parent of all processes. | 930 | Init is the parent of all processes. |
| 932 | 931 | ||
| @@ -960,7 +959,7 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow | |||
| 960 | WARNING: This field has a non-traditional meaning for BusyBox init! | 959 | WARNING: This field has a non-traditional meaning for BusyBox init! |
| 961 | The id field is used by BusyBox init to specify the controlling tty for | 960 | The id field is used by BusyBox init to specify the controlling tty for |
| 962 | the specified process to run on. The contents of this field are | 961 | the specified process to run on. The contents of this field are |
| 963 | appended to /dev/ and used as-is. There is no need for this field to | 962 | appended to "/dev/" and used as-is. There is no need for this field to |
| 964 | be unique, although if it isn't you may have strange results. If this | 963 | be unique, although if it isn't you may have strange results. If this |
| 965 | field is left blank, the controlling tty is set to the console. Also | 964 | field is left blank, the controlling tty is set to the console. Also |
| 966 | note that if BusyBox detects that a serial console is in use, then only | 965 | note that if BusyBox detects that a serial console is in use, then only |
| @@ -1003,7 +1002,7 @@ If you choose to use an /etc/inittab file, the inittab entry format is as follow | |||
| 1003 | it. Unlike sysvinit, BusyBox init does not stop processes from | 1002 | it. Unlike sysvinit, BusyBox init does not stop processes from |
| 1004 | respawning out of control. The 'askfirst' actions acts just like | 1003 | respawning out of control. The 'askfirst' actions acts just like |
| 1005 | respawn, except that before running the specified process it | 1004 | respawn, except that before running the specified process it |
| 1006 | displays the line Please press Enter to activate this console. | 1005 | displays the line "Please press Enter to activate this console." |
| 1007 | and then waits for the user to press enter before starting the | 1006 | and then waits for the user to press enter before starting the |
| 1008 | specified process. | 1007 | specified process. |
| 1009 | 1008 | ||
| @@ -1023,9 +1022,9 @@ Example /etc/inittab file: | |||
| 1023 | 1022 | ||
| 1024 | # /bin/sh invocations on selected ttys | 1023 | # /bin/sh invocations on selected ttys |
| 1025 | # | 1024 | # |
| 1026 | # Start an askfirst shell on the console (whatever that may be) | 1025 | # Start an "askfirst" shell on the console (whatever that may be) |
| 1027 | ::askfirst:-/bin/sh | 1026 | ::askfirst:-/bin/sh |
| 1028 | # Start an askfirst shell on /dev/tty2-4 | 1027 | # Start an "askfirst" shell on /dev/tty2-4 |
| 1029 | tty2::askfirst:-/bin/sh | 1028 | tty2::askfirst:-/bin/sh |
| 1030 | tty3::askfirst:-/bin/sh | 1029 | tty3::askfirst:-/bin/sh |
| 1031 | tty4::askfirst:-/bin/sh | 1030 | tty4::askfirst:-/bin/sh |
| @@ -1104,7 +1103,6 @@ Options: | |||
| 1104 | Example: | 1103 | Example: |
| 1105 | 1104 | ||
| 1106 | $ killall apache | 1105 | $ killall apache |
| 1107 | |||
| 1108 | 1106 | ||
| 1109 | ------------------------------- | 1107 | ------------------------------- |
| 1110 | 1108 | ||
| @@ -1127,7 +1125,7 @@ Prints out the length of the specified STRING. | |||
| 1127 | 1125 | ||
| 1128 | Example: | 1126 | Example: |
| 1129 | 1127 | ||
| 1130 | $ length Hello | 1128 | $ length "Hello" |
| 1131 | 5 | 1129 | 5 |
| 1132 | 1130 | ||
| 1133 | ------------------------------- | 1131 | ------------------------------- |
| @@ -1151,7 +1149,6 @@ Example: | |||
| 1151 | $ ln -s BusyBox /tmp/ls | 1149 | $ ln -s BusyBox /tmp/ls |
| 1152 | $ ls -l /tmp/ls | 1150 | $ ls -l /tmp/ls |
| 1153 | lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox* | 1151 | lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox* |
| 1154 | |||
| 1155 | 1152 | ||
| 1156 | ------------------------------- | 1153 | ------------------------------- |
| 1157 | 1154 | ||
| @@ -1164,7 +1161,6 @@ Loads an acm from standard input. | |||
| 1164 | Example: | 1161 | Example: |
| 1165 | 1162 | ||
| 1166 | $ loadacm < /etc/i18n/acmname | 1163 | $ loadacm < /etc/i18n/acmname |
| 1167 | |||
| 1168 | 1164 | ||
| 1169 | ------------------------------- | 1165 | ------------------------------- |
| 1170 | 1166 | ||
| @@ -1177,7 +1173,6 @@ Loads a console font from standard input. | |||
| 1177 | Example: | 1173 | Example: |
| 1178 | 1174 | ||
| 1179 | $ loadfont < /etc/i18n/fontname | 1175 | $ loadfont < /etc/i18n/fontname |
| 1180 | |||
| 1181 | 1176 | ||
| 1182 | ------------------------------- | 1177 | ------------------------------- |
| 1183 | 1178 | ||
| @@ -1190,7 +1185,6 @@ Loads a binary keyboard translation table from standard input. | |||
| 1190 | Example: | 1185 | Example: |
| 1191 | 1186 | ||
| 1192 | $ loadkmap < /etc/i18n/lang-keymap | 1187 | $ loadkmap < /etc/i18n/lang-keymap |
| 1193 | |||
| 1194 | 1188 | ||
| 1195 | ------------------------------- | 1189 | ------------------------------- |
| 1196 | 1190 | ||
| @@ -1209,14 +1203,13 @@ Options: | |||
| 1209 | 1203 | ||
| 1210 | Example: | 1204 | Example: |
| 1211 | 1205 | ||
| 1212 | $ logger hello | 1206 | $ logger "hello" |
| 1213 | |||
| 1214 | 1207 | ||
| 1215 | ------------------------------- | 1208 | ------------------------------- |
| 1216 | 1209 | ||
| 1217 | =item B<logname> | 1210 | =item B<logname> |
| 1218 | 1211 | ||
| 1219 | logname | 1212 | logname |
| 1220 | 1213 | ||
| 1221 | Print the name of the current user. | 1214 | Print the name of the current user. |
| 1222 | 1215 | ||
| @@ -1224,13 +1217,12 @@ Example: | |||
| 1224 | 1217 | ||
| 1225 | $ logname | 1218 | $ logname |
| 1226 | root | 1219 | root |
| 1227 | |||
| 1228 | 1220 | ||
| 1229 | ------------------------------- | 1221 | ------------------------------- |
| 1230 | 1222 | ||
| 1231 | =item B<logread> | 1223 | =item B<logread> |
| 1232 | 1224 | ||
| 1233 | logread | 1225 | logread |
| 1234 | 1226 | ||
| 1235 | Shows the messages from syslogd (using circular buffer). | 1227 | Shows the messages from syslogd (using circular buffer). |
| 1236 | 1228 | ||
| @@ -1269,13 +1261,13 @@ Options: | |||
| 1269 | -x list entries by lines instead of by columns | 1261 | -x list entries by lines instead of by columns |
| 1270 | -X sort the listing by extension | 1262 | -X sort the listing by extension |
| 1271 | -h print sizes in human readable format (e.g., 1K 243M 2G ) | 1263 | -h print sizes in human readable format (e.g., 1K 243M 2G ) |
| 1272 | -k print sizes in kilobytes(default) | 1264 | -k print sizes in kilobytes(default) |
| 1273 | 1265 | ||
| 1274 | ------------------------------- | 1266 | ------------------------------- |
| 1275 | 1267 | ||
| 1276 | =item B<lsmod> | 1268 | =item B<lsmod> |
| 1277 | 1269 | ||
| 1278 | lsmod | 1270 | lsmod |
| 1279 | 1271 | ||
| 1280 | List the currently loaded kernel modules. | 1272 | List the currently loaded kernel modules. |
| 1281 | 1273 | ||
| @@ -1308,7 +1300,6 @@ Example: | |||
| 1308 | [creates ttyS2-ttyS63] | 1300 | [creates ttyS2-ttyS63] |
| 1309 | $ makedevs /dev/hda b 3 0 0 8 s | 1301 | $ makedevs /dev/hda b 3 0 0 8 s |
| 1310 | [creates hda,hda1-hda8] | 1302 | [creates hda,hda1-hda8] |
| 1311 | |||
| 1312 | 1303 | ||
| 1313 | ------------------------------- | 1304 | ------------------------------- |
| 1314 | 1305 | ||
| @@ -1364,7 +1355,6 @@ Example: | |||
| 1364 | $ mkdir /tmp/foo/bar/baz | 1355 | $ mkdir /tmp/foo/bar/baz |
| 1365 | /tmp/foo/bar/baz: No such file or directory | 1356 | /tmp/foo/bar/baz: No such file or directory |
| 1366 | $ mkdir -p /tmp/foo/bar/baz | 1357 | $ mkdir -p /tmp/foo/bar/baz |
| 1367 | |||
| 1368 | 1358 | ||
| 1369 | ------------------------------- | 1359 | ------------------------------- |
| 1370 | 1360 | ||
| @@ -1416,7 +1406,6 @@ Example: | |||
| 1416 | 1406 | ||
| 1417 | $ mknod /dev/fd0 b 2 0 | 1407 | $ mknod /dev/fd0 b 2 0 |
| 1418 | $ mknod -m 644 /tmp/pipe p | 1408 | $ mknod -m 644 /tmp/pipe p |
| 1419 | |||
| 1420 | 1409 | ||
| 1421 | ------------------------------- | 1410 | ------------------------------- |
| 1422 | 1411 | ||
| @@ -1449,7 +1438,6 @@ Example: | |||
| 1449 | /tmp/temp.mWiLjM | 1438 | /tmp/temp.mWiLjM |
| 1450 | $ ls -la /tmp/temp.mWiLjM | 1439 | $ ls -la /tmp/temp.mWiLjM |
| 1451 | -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM | 1440 | -rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM |
| 1452 | |||
| 1453 | 1441 | ||
| 1454 | ------------------------------- | 1442 | ------------------------------- |
| 1455 | 1443 | ||
| @@ -1462,7 +1450,6 @@ More is a filter for viewing FILE one screenful at a time. | |||
| 1462 | Example: | 1450 | Example: |
| 1463 | 1451 | ||
| 1464 | $ dmesg | more | 1452 | $ dmesg | more |
| 1465 | |||
| 1466 | 1453 | ||
| 1467 | ------------------------------- | 1454 | ------------------------------- |
| 1468 | 1455 | ||
| @@ -1475,14 +1462,14 @@ Mount a filesystem | |||
| 1475 | Flags: | 1462 | Flags: |
| 1476 | 1463 | ||
| 1477 | -a: Mount all filesystems in fstab. | 1464 | -a: Mount all filesystems in fstab. |
| 1478 | -f: Fake Add entry to mount table but don't mount it. | 1465 | -f: "Fake" Add entry to mount table but don't mount it. |
| 1479 | -n: Don't write a mount table entry. | 1466 | -n: Don't write a mount table entry. |
| 1480 | -o option: One of many filesystem options, listed below. | 1467 | -o option: One of many filesystem options, listed below. |
| 1481 | -r: Mount the filesystem read-only. | 1468 | -r: Mount the filesystem read-only. |
| 1482 | -t fs-type: Specify the filesystem type. | 1469 | -t fs-type: Specify the filesystem type. |
| 1483 | -w: Mount for reading and writing (default). | 1470 | -w: Mount for reading and writing (default). |
| 1484 | 1471 | ||
| 1485 | Options for use with the B<-o> flag: | 1472 | Options for use with the "B<-o>" flag: |
| 1486 | 1473 | ||
| 1487 | async/sync: Writes are asynchronous / synchronous. | 1474 | async/sync: Writes are asynchronous / synchronous. |
| 1488 | atime/noatime: Enable / disable updates to inode access times. | 1475 | atime/noatime: Enable / disable updates to inode access times. |
| @@ -1504,7 +1491,6 @@ Example: | |||
| 1504 | devpts on /dev/pts type devpts (rw) | 1491 | devpts on /dev/pts type devpts (rw) |
| 1505 | $ mount /dev/fd0 /mnt -t msdos -o ro | 1492 | $ mount /dev/fd0 /mnt -t msdos -o ro |
| 1506 | $ mount /tmp/diskimage /opt -t ext2 -o loop | 1493 | $ mount /tmp/diskimage /opt -t ext2 -o loop |
| 1507 | |||
| 1508 | 1494 | ||
| 1509 | ------------------------------- | 1495 | ------------------------------- |
| 1510 | 1496 | ||
| @@ -1533,13 +1519,12 @@ Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. | |||
| 1533 | Example: | 1519 | Example: |
| 1534 | 1520 | ||
| 1535 | $ mv /tmp/foo /bin/bar | 1521 | $ mv /tmp/foo /bin/bar |
| 1536 | |||
| 1537 | 1522 | ||
| 1538 | ------------------------------- | 1523 | ------------------------------- |
| 1539 | 1524 | ||
| 1540 | =item B<nc> | 1525 | =item B<nc> |
| 1541 | 1526 | ||
| 1542 | nc [IP] [port] | 1527 | nc [IP] [port] |
| 1543 | 1528 | ||
| 1544 | Netcat opens a pipe to IP:port | 1529 | Netcat opens a pipe to IP:port |
| 1545 | 1530 | ||
| @@ -1553,7 +1538,6 @@ Example: | |||
| 1553 | 214 NOOP QUIT RSET HELP | 1538 | 214 NOOP QUIT RSET HELP |
| 1554 | quit | 1539 | quit |
| 1555 | 221 foobar closing connection | 1540 | 221 foobar closing connection |
| 1556 | |||
| 1557 | 1541 | ||
| 1558 | ------------------------------- | 1542 | ------------------------------- |
| 1559 | 1543 | ||
| @@ -1571,7 +1555,6 @@ Example: | |||
| 1571 | 1555 | ||
| 1572 | Name: debian | 1556 | Name: debian |
| 1573 | Address: 127.0.0.1 | 1557 | Address: 127.0.0.1 |
| 1574 | |||
| 1575 | 1558 | ||
| 1576 | ------------------------------- | 1559 | ------------------------------- |
| 1577 | 1560 | ||
| @@ -1597,7 +1580,6 @@ Example: | |||
| 1597 | --- debian ping statistics --- | 1580 | --- debian ping statistics --- |
| 1598 | 1 packets transmitted, 1 packets received, 0% packet loss | 1581 | 1 packets transmitted, 1 packets received, 0% packet loss |
| 1599 | round-trip min/avg/max = 20.1/20.1/20.1 ms | 1582 | round-trip min/avg/max = 20.1/20.1/20.1 ms |
| 1600 | |||
| 1601 | 1583 | ||
| 1602 | ------------------------------- | 1584 | ------------------------------- |
| 1603 | 1585 | ||
| @@ -1612,7 +1594,7 @@ the new root file system. | |||
| 1612 | 1594 | ||
| 1613 | =item B<poweroff> | 1595 | =item B<poweroff> |
| 1614 | 1596 | ||
| 1615 | poweroff | 1597 | poweroff |
| 1616 | 1598 | ||
| 1617 | Halt the system and request that the kernel shut off the power. | 1599 | Halt the system and request that the kernel shut off the power. |
| 1618 | 1600 | ||
| @@ -1627,16 +1609,15 @@ Where FORMAT controls the output exactly as in C printf. | |||
| 1627 | 1609 | ||
| 1628 | Example: | 1610 | Example: |
| 1629 | 1611 | ||
| 1630 | $ printf Val=%d | 1612 | $ printf "Val=%d |
| 1631 | 5 | 1613 | " 5 |
| 1632 | Val=5 | 1614 | Val=5 |
| 1633 | |||
| 1634 | 1615 | ||
| 1635 | ------------------------------- | 1616 | ------------------------------- |
| 1636 | 1617 | ||
| 1637 | =item B<ps> | 1618 | =item B<ps> |
| 1638 | 1619 | ||
| 1639 | ps | 1620 | ps |
| 1640 | 1621 | ||
| 1641 | Report process status | 1622 | Report process status |
| 1642 | 1623 | ||
| @@ -1660,7 +1641,7 @@ Example: | |||
| 1660 | 1641 | ||
| 1661 | =item B<pwd> | 1642 | =item B<pwd> |
| 1662 | 1643 | ||
| 1663 | pwd | 1644 | pwd |
| 1664 | 1645 | ||
| 1665 | Print the full filename of the current working directory. | 1646 | Print the full filename of the current working directory. |
| 1666 | 1647 | ||
| @@ -1686,7 +1667,7 @@ Options: | |||
| 1686 | 1667 | ||
| 1687 | =item B<readlink> | 1668 | =item B<readlink> |
| 1688 | 1669 | ||
| 1689 | readlink | 1670 | readlink |
| 1690 | 1671 | ||
| 1691 | Read a symbolic link. | 1672 | Read a symbolic link. |
| 1692 | 1673 | ||
| @@ -1694,7 +1675,7 @@ Read a symbolic link. | |||
| 1694 | 1675 | ||
| 1695 | =item B<reboot> | 1676 | =item B<reboot> |
| 1696 | 1677 | ||
| 1697 | reboot | 1678 | reboot |
| 1698 | 1679 | ||
| 1699 | Reboot the system. | 1680 | Reboot the system. |
| 1700 | 1681 | ||
| @@ -1712,7 +1693,7 @@ from 20 (the process runs only when nothing else is running) to 0 | |||
| 1712 | 1693 | ||
| 1713 | =item B<reset> | 1694 | =item B<reset> |
| 1714 | 1695 | ||
| 1715 | reset | 1696 | reset |
| 1716 | 1697 | ||
| 1717 | Resets the screen. | 1698 | Resets the screen. |
| 1718 | 1699 | ||
| @@ -1798,7 +1779,7 @@ files; if no input files are specified, then the standard input is read. | |||
| 1798 | 1779 | ||
| 1799 | Example: | 1780 | Example: |
| 1800 | 1781 | ||
| 1801 | $ echo foo | sed -e 's/f[a-zA-Z]o/bar/g' | 1782 | $ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g' |
| 1802 | bar | 1783 | bar |
| 1803 | 1784 | ||
| 1804 | ------------------------------- | 1785 | ------------------------------- |
| @@ -1831,7 +1812,7 @@ This command does not yet have proper documentation. | |||
| 1831 | Use lash just as you would use any other shell. It properly handles pipes, | 1812 | Use lash just as you would use any other shell. It properly handles pipes, |
| 1832 | redirects, job control, can be used as the shell for scripts, and has a | 1813 | redirects, job control, can be used as the shell for scripts, and has a |
| 1833 | sufficient set of builtins to do what is needed. It does not (yet) support | 1814 | sufficient set of builtins to do what is needed. It does not (yet) support |
| 1834 | Bourne Shell syntax. If you need things like if-then-else, while, and such | 1815 | Bourne Shell syntax. If you need things like "if-then-else", "while", and such |
| 1835 | use ash or bash. If you just need a very simple and extremely small shell, | 1816 | use ash or bash. If you just need a very simple and extremely small shell, |
| 1836 | this will do the job. | 1817 | this will do the job. |
| 1837 | 1818 | ||
| @@ -1858,12 +1839,12 @@ Sorts lines of text in the specified files | |||
| 1858 | 1839 | ||
| 1859 | Example: | 1840 | Example: |
| 1860 | 1841 | ||
| 1861 | $ echo -e e | 1842 | $ echo -e "e |
| 1862 | f | 1843 | f |
| 1863 | b | 1844 | b |
| 1864 | d | 1845 | d |
| 1865 | c | 1846 | c |
| 1866 | a | sort | 1847 | a" | sort |
| 1867 | a | 1848 | a |
| 1868 | b | 1849 | b |
| 1869 | c | 1850 | c |
| @@ -1915,7 +1896,7 @@ Options: | |||
| 1915 | 1896 | ||
| 1916 | =item B<sync> | 1897 | =item B<sync> |
| 1917 | 1898 | ||
| 1918 | sync | 1899 | sync |
| 1919 | 1900 | ||
| 1920 | Write all buffered filesystem blocks to disk. | 1901 | Write all buffered filesystem blocks to disk. |
| 1921 | 1902 | ||
| @@ -1985,7 +1966,7 @@ Main operation mode: | |||
| 1985 | 1966 | ||
| 1986 | File selection: | 1967 | File selection: |
| 1987 | 1968 | ||
| 1988 | f name of tarfile or - for stdin | 1969 | f name of tarfile or "-" for stdin |
| 1989 | O extract to stdout | 1970 | O extract to stdout |
| 1990 | exclude file to exclude | 1971 | exclude file to exclude |
| 1991 | X file with names to exclude | 1972 | X file with names to exclude |
| @@ -2013,7 +1994,7 @@ Options: | |||
| 2013 | 1994 | ||
| 2014 | Example: | 1995 | Example: |
| 2015 | 1996 | ||
| 2016 | $ echo Hello | tee /tmp/foo | 1997 | $ echo "Hello" | tee /tmp/foo |
| 2017 | $ cat /tmp/foo | 1998 | $ cat /tmp/foo |
| 2018 | Hello | 1999 | Hello |
| 2019 | 2000 | ||
| @@ -2057,14 +2038,14 @@ Example: | |||
| 2057 | 2038 | ||
| 2058 | tftp command SOURCE DEST | 2039 | tftp command SOURCE DEST |
| 2059 | 2040 | ||
| 2060 | Transfers a file from/to a tftp server using octet mode. | 2041 | Transfers a file from/to a tftp server using "octet" mode. |
| 2061 | 2042 | ||
| 2062 | Commands: | 2043 | Commands: |
| 2063 | 2044 | ||
| 2064 | get Get file from server SOURCE and store to local DEST. | 2045 | get Get file from server SOURCE and store to local DEST. |
| 2065 | put Put local file SOURCE to server DEST. | 2046 | put Put local file SOURCE to server DEST. |
| 2066 | 2047 | ||
| 2067 | When nameing a server, use the syntax server:file. | 2048 | When nameing a server, use the syntax "server:file". |
| 2068 | 2049 | ||
| 2069 | ------------------------------- | 2050 | ------------------------------- |
| 2070 | 2051 | ||
| @@ -2085,7 +2066,6 @@ Example: | |||
| 2085 | $ touch /tmp/foo | 2066 | $ touch /tmp/foo |
| 2086 | $ ls -l /tmp/foo | 2067 | $ ls -l /tmp/foo |
| 2087 | -rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo | 2068 | -rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo |
| 2088 | |||
| 2089 | 2069 | ||
| 2090 | ------------------------------- | 2070 | ------------------------------- |
| 2091 | 2071 | ||
| @@ -2104,15 +2084,14 @@ Options: | |||
| 2104 | 2084 | ||
| 2105 | Example: | 2085 | Example: |
| 2106 | 2086 | ||
| 2107 | $ echo gdkkn vnqkc | tr [a-y] [b-z] | 2087 | $ echo "gdkkn vnqkc" | tr [a-y] [b-z] |
| 2108 | hello world | 2088 | hello world |
| 2109 | |||
| 2110 | 2089 | ||
| 2111 | ------------------------------- | 2090 | ------------------------------- |
| 2112 | 2091 | ||
| 2113 | =item B<true> | 2092 | =item B<true> |
| 2114 | 2093 | ||
| 2115 | true | 2094 | true |
| 2116 | 2095 | ||
| 2117 | Return an exit code of TRUE (0). | 2096 | Return an exit code of TRUE (0). |
| 2118 | 2097 | ||
| @@ -2126,7 +2105,7 @@ Example: | |||
| 2126 | 2105 | ||
| 2127 | =item B<tty> | 2106 | =item B<tty> |
| 2128 | 2107 | ||
| 2129 | tty | 2108 | tty |
| 2130 | 2109 | ||
| 2131 | Print the file name of the terminal connected to standard input. | 2110 | Print the file name of the terminal connected to standard input. |
| 2132 | 2111 | ||
| @@ -2181,7 +2160,6 @@ Example: | |||
| 2181 | 2160 | ||
| 2182 | $ uname -a | 2161 | $ uname -a |
| 2183 | Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown | 2162 | Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown |
| 2184 | |||
| 2185 | 2163 | ||
| 2186 | ------------------------------- | 2164 | ------------------------------- |
| 2187 | 2165 | ||
| @@ -2200,12 +2178,12 @@ Options: | |||
| 2200 | 2178 | ||
| 2201 | Example: | 2179 | Example: |
| 2202 | 2180 | ||
| 2203 | $ echo -e a | 2181 | $ echo -e "a |
| 2204 | a | 2182 | a |
| 2205 | b | 2183 | b |
| 2206 | c | 2184 | c |
| 2207 | c | 2185 | c |
| 2208 | a | sort | uniq | 2186 | a" | sort | uniq |
| 2209 | a | 2187 | a |
| 2210 | b | 2188 | b |
| 2211 | c | 2189 | c |
| @@ -2236,7 +2214,7 @@ Options: | |||
| 2236 | 2214 | ||
| 2237 | =item B<uptime> | 2215 | =item B<uptime> |
| 2238 | 2216 | ||
| 2239 | uptime | 2217 | uptime |
| 2240 | 2218 | ||
| 2241 | Display the time since the last boot. | 2219 | Display the time since the last boot. |
| 2242 | 2220 | ||
| @@ -2244,13 +2222,12 @@ Example: | |||
| 2244 | 2222 | ||
| 2245 | $ uptime | 2223 | $ uptime |
| 2246 | 1:55pm up 2:30, load average: 0.09, 0.04, 0.00 | 2224 | 1:55pm up 2:30, load average: 0.09, 0.04, 0.00 |
| 2247 | |||
| 2248 | 2225 | ||
| 2249 | ------------------------------- | 2226 | ------------------------------- |
| 2250 | 2227 | ||
| 2251 | =item B<usleep> | 2228 | =item B<usleep> |
| 2252 | 2229 | ||
| 2253 | usleep N | 2230 | usleep N |
| 2254 | 2231 | ||
| 2255 | Pause for N microseconds. | 2232 | Pause for N microseconds. |
| 2256 | 2233 | ||
| @@ -2269,14 +2246,13 @@ Uudecode a file that is uuencoded. | |||
| 2269 | 2246 | ||
| 2270 | Options: | 2247 | Options: |
| 2271 | 2248 | ||
| 2272 | -o FILE direct output to FILE | 2249 | -o FILE direct output to FILE |
| 2273 | 2250 | ||
| 2274 | Example: | 2251 | Example: |
| 2275 | 2252 | ||
| 2276 | $ uudecode -o busybox busybox.uu | 2253 | $ uudecode -o busybox busybox.uu |
| 2277 | $ ls -l busybox | 2254 | $ ls -l busybox |
| 2278 | -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox | 2255 | -rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox |
| 2279 | |||
| 2280 | 2256 | ||
| 2281 | ------------------------------- | 2257 | ------------------------------- |
| 2282 | 2258 | ||
| @@ -2308,7 +2284,7 @@ edit FILE. | |||
| 2308 | 2284 | ||
| 2309 | Options: | 2285 | Options: |
| 2310 | 2286 | ||
| 2311 | -R Read-only- do not write to the file. | 2287 | -R Read-only- do not write to the file. |
| 2312 | 2288 | ||
| 2313 | ------------------------------- | 2289 | ------------------------------- |
| 2314 | 2290 | ||
| @@ -2338,7 +2314,6 @@ Example: | |||
| 2338 | 2314 | ||
| 2339 | $ wc /etc/passwd | 2315 | $ wc /etc/passwd |
| 2340 | 31 46 1365 /etc/passwd | 2316 | 31 46 1365 /etc/passwd |
| 2341 | |||
| 2342 | 2317 | ||
| 2343 | ------------------------------- | 2318 | ------------------------------- |
| 2344 | 2319 | ||
| @@ -2371,7 +2346,7 @@ Example: | |||
| 2371 | 2346 | ||
| 2372 | =item B<whoami> | 2347 | =item B<whoami> |
| 2373 | 2348 | ||
| 2374 | whoami | 2349 | whoami |
| 2375 | 2350 | ||
| 2376 | Prints the user name associated with the current effective user id. | 2351 | Prints the user name associated with the current effective user id. |
| 2377 | 2352 | ||
| @@ -2387,7 +2362,6 @@ Example: | |||
| 2387 | 2362 | ||
| 2388 | $ ls | xargs gzip | 2363 | $ ls | xargs gzip |
| 2389 | $ find . -name '*.c' -print | xargs rm | 2364 | $ find . -name '*.c' -print | xargs rm |
| 2390 | |||
| 2391 | 2365 | ||
| 2392 | ------------------------------- | 2366 | ------------------------------- |
| 2393 | 2367 | ||
| @@ -2562,4 +2536,4 @@ Enrique Zanardi <ezanardi@ull.es> | |||
| 2562 | 2536 | ||
| 2563 | =cut | 2537 | =cut |
| 2564 | 2538 | ||
| 2565 | # $Id: busybox.pod,v 1.98 2001/04/09 23:27:51 kraai Exp $ | 2539 | # $Id: busybox.pod,v 1.99 2001/04/10 00:00:05 kraai Exp $ |
