diff options
author | erik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-05-01 19:10:52 +0000 |
---|---|---|
committer | erik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-05-01 19:10:52 +0000 |
commit | 1f0e03b09991f10a5ac79cbb86ca820222269319 (patch) | |
tree | 7f40ce6f49ca9ce727653928d1b9f655afb5cb66 /coreutils/tail.c | |
parent | 9db4cbf4ca67c52017346a840e797d75dd549dd1 (diff) | |
download | busybox-w32-1f0e03b09991f10a5ac79cbb86ca820222269319.tar.gz busybox-w32-1f0e03b09991f10a5ac79cbb86ca820222269319.tar.bz2 busybox-w32-1f0e03b09991f10a5ac79cbb86ca820222269319.zip |
Some accrued fixes/updates.
* cp/mv now accepts (and ignores) the -f flag, since it always
does force anyway
* tail can now accept -<num> commands (e.g. -10) for better
compatibility with the standard tail command
* added a simple id implementation; doesn't support supp. groups yet
git-svn-id: svn://busybox.net/trunk/busybox@507 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index 315eee188..321c5c4b2 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -368,8 +368,10 @@ extern int tail_main(int argc, char **argv) | |||
368 | case 'h': | 368 | case 'h': |
369 | usage(tail_usage); | 369 | usage(tail_usage); |
370 | default: | 370 | default: |
371 | fprintf(stderr, "tail: invalid option -- %c\n", opt); | 371 | if ((n_units = atoi(&argv[i][1])) < 1) { |
372 | usage(tail_usage); | 372 | fprintf(stderr, "tail: invalid option -- %c\n", opt); |
373 | usage(tail_usage); | ||
374 | } | ||
373 | } | 375 | } |
374 | } else { | 376 | } else { |
375 | break; | 377 | break; |