[PATCH v2 8/9] test/atomicity: use a more portable 'cp' form
Mike Kelly
pioto at pioto.org
Wed May 30 00:02:03 PDT 2012
-a already implies -r/-R, so no need for both.
FreeBSD's cp complains:
cp: the -R and -r options may not be specified together
---
test/atomicity | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/atomicity b/test/atomicity
index 6df0a00..1c786fa 100755
--- a/test/atomicity
+++ b/test/atomicity
@@ -51,7 +51,7 @@ if test_require_external_prereq gdb; then
# Prepare a snapshot of the updated maildir. The gdb script will
# update the database in this snapshot as it goes.
- cp -ra $MAIL_DIR $MAIL_DIR.snap
+ cp -a $MAIL_DIR $MAIL_DIR.snap
cp ${NOTMUCH_CONFIG} ${NOTMUCH_CONFIG}.snap
NOTMUCH_CONFIG=${NOTMUCH_CONFIG}.snap notmuch config set database.path $MAIL_DIR.snap
--
1.7.10.2
More information about the notmuch
mailing list