From 51442ce32e99c28fbbd74305e6a8b8e5686293c0 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 23 Jan 2020 19:18:32 -0800 Subject: cp/mv: add -T. The kernel script scripts/kconfig/merge_config.sh uses cp -T. (Also sort the options into alphabetical order while adding -T, so that eyeball binary search actually works when trying to find an option! Oddly, they all show in reverse order because there's a bug in the help text generator, but that's a problem for another day...) --- tests/cp.test | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/cp.test') diff --git a/tests/cp.test b/tests/cp.test index b665e47e..dfb80ea1 100755 --- a/tests/cp.test +++ b/tests/cp.test @@ -113,6 +113,13 @@ testing "duplicated --preserve options" \ "cp --preserve=mode,mode walrus walrus2 2>&1 || echo bad" "" "" "" rm -rf walrus woot carpenter +mkdir dir +echo a > file +echo b > b +testing "-T file" "cp -T b file && cat file" "b\n" "" "" +testing "-T dir" "cp -T b dir 2>/dev/null || echo expected" "expected\n" "" "" +rm b file + # cp -r ../source destdir # cp -r one/two/three missing # cp -r one/two/three two -- cgit v1.2.3