summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-10-16 13:13:39 +0000
committerJim Meyering <jim@meyering.net>1999-10-16 13:13:39 +0000
commit0470b5dce91bb79bc7a535eeac985c0a9ae4af7a (patch)
treeb0bef3fca18a058f49f7040bbed416a8d6df9c65 /tests
parent449c9c39cccb7d51653c8e42ea53873d7ac3a1f8 (diff)
downloadcoreutils-0470b5dce91bb79bc7a535eeac985c0a9ae4af7a.tar.xz
*** empty log message ***
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/cp-mv-backup19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/cp/cp-mv-backup b/tests/cp/cp-mv-backup
new file mode 100755
index 000000000..916206649
--- /dev/null
+++ b/tests/cp/cp-mv-backup
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+umask 022
+
+rm -f out
+
+fail=0
+for initial_files in 'a' 'a b' 'a b b~' 'a b b.~1~' 'a b b~ b.~1~'; do
+ for opt in existing never nil none numbered off simple t; do
+ touch $initial_files
+ env -i -- cp --backup=$opt a b || fail=1
+ echo $initial_files $opt: `ls a b*` >> out
+ rm -f a b*
+ done
+done
+
+# rm -f out
+
+exit $fail