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 /cp_mv.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 'cp_mv.c')
-rw-r--r-- | cp_mv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -56,6 +56,7 @@ static const char *cp_mv_usage[] = /* .rodata */ | |||
56 | "\t-a\tSame as -dpR\n" | 56 | "\t-a\tSame as -dpR\n" |
57 | "\t-d\tPreserves links\n" | 57 | "\t-d\tPreserves links\n" |
58 | "\t-p\tPreserves file attributes if possible\n" | 58 | "\t-p\tPreserves file attributes if possible\n" |
59 | "\t-f\tforce (implied; ignored) - always set\n" | ||
59 | "\t-R\tCopies directories recursively\n" | 60 | "\t-R\tCopies directories recursively\n" |
60 | #endif | 61 | #endif |
61 | , | 62 | , |
@@ -218,6 +219,9 @@ extern int cp_mv_main(int argc, char **argv) | |||
218 | case 'R': | 219 | case 'R': |
219 | recursiveFlag = TRUE; | 220 | recursiveFlag = TRUE; |
220 | break; | 221 | break; |
222 | case 'f': | ||
223 | /* for compatibility; busybox cp/mv always does force */ | ||
224 | break; | ||
221 | default: | 225 | default: |
222 | usage(cp_mv_usage[is_cp]); | 226 | usage(cp_mv_usage[is_cp]); |
223 | } | 227 | } |