diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-27 16:26:35 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-27 16:26:35 +0000 |
commit | 95891fc016c9911406cb826540873f0894bcbe8b (patch) | |
tree | 6bd21013d32cd589946742000c021ad95de61634 /include | |
parent | 72b3442aeb948a9f27822d8888df765393b9ecd4 (diff) | |
download | busybox-w32-95891fc016c9911406cb826540873f0894bcbe8b.tar.gz busybox-w32-95891fc016c9911406cb826540873f0894bcbe8b.tar.bz2 busybox-w32-95891fc016c9911406cb826540873f0894bcbe8b.zip |
openvt: fix gross mismatch between us and "standard" openvt.
standard one even has different syntax!
std: "openvt -c 12", we: "openvt 12"
std: "openvt top", we: complain that "top" is not a number.
openvt: implement -c -w -s (-l -f -v are also accepted but ingnored)
openvt_main 188 343 +155
vfork_child - 67 +67
not_vt_fd - 23 +23
packed_usage 23932 23952 +20
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 265/0) Total: 265 bytes
text data bss dec hex filename
801344 641 7380 809365 c5995 busybox_old
801617 641 7380 809638 c5aa6 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index f950a0a49..3be317bff 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2818,9 +2818,15 @@ | |||
2818 | "to standard output. With no FILE or when FILE is -, read standard input." | 2818 | "to standard output. With no FILE or when FILE is -, read standard input." |
2819 | 2819 | ||
2820 | #define openvt_trivial_usage \ | 2820 | #define openvt_trivial_usage \ |
2821 | "VTNUM COMMAND [ARGS...]" | 2821 | "[-c NUM] [-sw] [COMMAND [ARGS]]" |
2822 | #define openvt_full_usage \ | 2822 | #define openvt_full_usage \ |
2823 | "Start a command on a new virtual terminal" | 2823 | "Start COMMAND on a new virtual terminal\n" \ |
2824 | "\nOptions:" \ | ||
2825 | "\n -c Use specified VT" \ | ||
2826 | "\n -s Switch to the VT" \ | ||
2827 | /* "\n -l Run COMMAND as login shell (by prepending '-')" */ \ | ||
2828 | "\n -w Wait for COMMAND to exit" \ | ||
2829 | |||
2824 | #define openvt_example_usage \ | 2830 | #define openvt_example_usage \ |
2825 | "openvt 2 /bin/ash\n" | 2831 | "openvt 2 /bin/ash\n" |
2826 | 2832 | ||