diff options
Diffstat (limited to 'miscutils/time.c')
-rw-r--r-- | miscutils/time.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/miscutils/time.c b/miscutils/time.c index 60fc11f6e..65dbcdcf3 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -127,13 +127,13 @@ static unsigned long ptok(const unsigned pagesize, const unsigned long pages) | |||
127 | 127 | ||
128 | /* summarize: Report on the system use of a command. | 128 | /* summarize: Report on the system use of a command. |
129 | 129 | ||
130 | Print the FMT argument except that `%' sequences | 130 | Print the FMT argument except that '%' sequences |
131 | have special meaning, and `\n' and `\t' are translated into | 131 | have special meaning, and '\n' and '\t' are translated into |
132 | newline and tab, respectively, and `\\' is translated into `\'. | 132 | newline and tab, respectively, and '\\' is translated into '\'. |
133 | 133 | ||
134 | The character following a `%' can be: | 134 | The character following a '%' can be: |
135 | (* means the tcsh time builtin also recognizes it) | 135 | (* means the tcsh time builtin also recognizes it) |
136 | % == a literal `%' | 136 | % == a literal '%' |
137 | C == command name and arguments | 137 | C == command name and arguments |
138 | * D == average unshared data size in K (ru_idrss+ru_isrss) | 138 | * D == average unshared data size in K (ru_idrss+ru_isrss) |
139 | * E == elapsed real (wall clock) time in [hour:]min:sec | 139 | * E == elapsed real (wall clock) time in [hour:]min:sec |
@@ -430,9 +430,10 @@ int time_main(int argc UNUSED_PARAM, char **argv) | |||
430 | OPT_f = (1 << 4), | 430 | OPT_f = (1 << 4), |
431 | }; | 431 | }; |
432 | 432 | ||
433 | opt_complementary = "-1"; /* at least one arg */ | ||
434 | /* "+": stop on first non-option */ | 433 | /* "+": stop on first non-option */ |
435 | opt = getopt32(argv, "+vpao:f:", &output_filename, &output_format); | 434 | opt = getopt32(argv, "^+" "vpao:f:" "\0" "-1"/*at least one arg*/, |
435 | &output_filename, &output_format | ||
436 | ); | ||
436 | argv += optind; | 437 | argv += optind; |
437 | if (opt & OPT_v) | 438 | if (opt & OPT_v) |
438 | output_format = long_format; | 439 | output_format = long_format; |