diff options
| author | Eric Andersen <andersen@codepoet.org> | 1999-10-06 00:30:51 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 1999-10-06 00:30:51 +0000 |
| commit | 4bea32abb5d25e3b83047c22fd3f4e8fae2479cd (patch) | |
| tree | c8aad7a8b8c573c2421b7fb3e58fdd00a3c1fe9b /coreutils | |
| parent | 2b69c40e8060934c115922c012737bd471956f09 (diff) | |
| download | busybox-w32-4bea32abb5d25e3b83047c22fd3f4e8fae2479cd.tar.gz busybox-w32-4bea32abb5d25e3b83047c22fd3f4e8fae2479cd.tar.bz2 busybox-w32-4bea32abb5d25e3b83047c22fd3f4e8fae2479cd.zip | |
latest and greatest.
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/chown.c | 4 | ||||
| -rw-r--r-- | coreutils/date.c | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index fc0c2424f..5c2ae0da6 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
| @@ -31,10 +31,10 @@ static int chownApp; | |||
| 31 | static char* invocationName=NULL; | 31 | static char* invocationName=NULL; |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | const char chgrp_usage[] = "[OPTION]... GROUP FILE...\n" | 34 | static const char chgrp_usage[] = "[OPTION]... GROUP FILE...\n" |
| 35 | "Change the group membership of each FILE to GROUP.\n" | 35 | "Change the group membership of each FILE to GROUP.\n" |
| 36 | "\n\tOptions:\n" "\t-R\tchange files and directories recursively\n"; | 36 | "\n\tOptions:\n" "\t-R\tchange files and directories recursively\n"; |
| 37 | const char chown_usage[] = "[OPTION]... OWNER[.[GROUP] FILE...\n" | 37 | static const char chown_usage[] = "[OPTION]... OWNER[.[GROUP] FILE...\n" |
| 38 | "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" | 38 | "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" |
| 39 | "\n\tOptions:\n" "\t-R\tchange files and directories recursively\n"; | 39 | "\n\tOptions:\n" "\t-R\tchange files and directories recursively\n"; |
| 40 | 40 | ||
diff --git a/coreutils/date.c b/coreutils/date.c index a52a9a4a8..558517086 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
| @@ -14,7 +14,13 @@ | |||
| 14 | an RFC 822 complient date output for shell scripting | 14 | an RFC 822 complient date output for shell scripting |
| 15 | mail commands */ | 15 | mail commands */ |
| 16 | 16 | ||
| 17 | const char date_usage[] = "date [-uR] [+FORMAT|+%f] [ [-s|-d] MMDDhhmm[[CC]YY]\n | [[[[CCYY.]MM.DD-]hh:mm[:ss]]]] ]"; | 17 | const char date_usage[] = "date [-uR] [+FORMAT|+%f] [ [-s|-d] MMDDhhmm[[CC]YY]\n" |
| 18 | "| [[[[CCYY.]MM.DD-]hh:mm[:ss]]]] ]"; | ||
| 19 | |||
| 20 | //static const char date_usage[] = "Usage: date [OPTION]... [+FORMAT]\n" | ||
| 21 | //"or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n" | ||
| 22 | //"Display the current time in the given FORMAT, or set the system date.\n"; | ||
| 23 | |||
| 18 | 24 | ||
| 19 | static struct option const long_options[] = | 25 | static struct option const long_options[] = |
| 20 | { | 26 | { |
| @@ -153,7 +159,7 @@ date_err(void) { | |||
| 153 | } | 159 | } |
| 154 | 160 | ||
| 155 | int | 161 | int |
| 156 | date_main(struct FileInfo * i, int argc, char * * argv) | 162 | date_main(int argc, char * * argv) |
| 157 | { | 163 | { |
| 158 | char *date_str = NULL; | 164 | char *date_str = NULL; |
| 159 | char *date_fmt = NULL; | 165 | char *date_fmt = NULL; |
| @@ -203,7 +209,7 @@ date_main(struct FileInfo * i, int argc, char * * argv) | |||
| 203 | break; | 209 | break; |
| 204 | 210 | ||
| 205 | default: | 211 | default: |
| 206 | usage(date_usage); | 212 | fprintf(stderr, "Usage: %s", date_usage); |
| 207 | break; | 213 | break; |
| 208 | } | 214 | } |
| 209 | } | 215 | } |
