From 48f116198d53697d59d03f4e0ff6cd8c04e79660 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 26 Sep 2009 14:31:04 +0200 Subject: cp: add support for --parents and long option synonyms of short opts By Ian Wienand (ianw AT vmware.com) function old new delta cp_main 257 369 +112 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 112/0) Total: 112 bytes text data bss dec hex filename 823000 458 6948 830406 cabc6 busybox_old 823283 458 6948 830689 cace1 busybox_unstripped Signed-off-by: Denys Vlasenko --- testsuite/cp/cp-parents | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testsuite/cp/cp-parents (limited to 'testsuite/cp/cp-parents') diff --git a/testsuite/cp/cp-parents b/testsuite/cp/cp-parents new file mode 100644 index 0000000..a721cea --- /dev/null +++ b/testsuite/cp/cp-parents @@ -0,0 +1,5 @@ +mkdir -p foo/bar/baz +touch foo/bar/baz/file +mkdir dir +busybox cp --parents foo/bar/baz/file dir +test -f dir/foo/bar/baz/file -- cgit v1.1