From 2a6f03eb088b21a68ee4f5fa45b7cd4f7c7bc558 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 7 Apr 2021 07:00:13 -0500 Subject: Add cp -u --- tests/cp.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/cp.test b/tests/cp.test index 3fcea3be..b0d5d3a4 100755 --- a/tests/cp.test +++ b/tests/cp.test @@ -136,6 +136,11 @@ 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 +testing '-u1' 'echo one>one; sleep .1; echo two>two; cp -u one two; cat two' \ + 'two\n' '' '' +testing '-u2' 'echo two>two; sleep .1; echo one>one; cp -u one two; cat two' \ + 'one\n' '' '' + # cp -r ../source destdir # cp -r one/two/three missing # cp -r one/two/three two -- cgit v1.2.3