From c42089fed7adbf3ae1a0fd73b3a7b1e4f10e31db Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 19 Feb 2021 11:12:04 -0600 Subject: Fix cp -t with one argument and make --parents work with -t. --- tests/cp.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/cp.test b/tests/cp.test index 293f0348..3fcea3be 100755 --- a/tests/cp.test +++ b/tests/cp.test @@ -131,6 +131,11 @@ testing "-P symlink" "cp -P lnk ldst && stat -c %F ldst" "symbolic link\n" "" "" testing "follow symlink" "cp lnk ldst2 && stat -c %F ldst2" "regular file\n" "" "" rm file fdst lnk ldst ldst2 +mkdir sub +testing "-t one arg" 'cp -t sub/ input && cat sub/input' 'yes\n' 'yes\n' '' +toyonly testing "-Dt" 'cp -Dt sub2 input && cat sub2/input' 'and\n' 'and\n' '' +rm -rf sub sub2 + # cp -r ../source destdir # cp -r one/two/three missing # cp -r one/two/three two -- cgit v1.2.3