From ae34569fd0e2242ea85ffec193d825dd006d1038 Mon Sep 17 00:00:00 2001 From: Denys Nykula Date: Tue, 12 Nov 2019 16:55:35 +0000 Subject: Don't rm prompt for nonexistent, just warn. --- tests/rm.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/rm.test') diff --git a/tests/rm.test b/tests/rm.test index 9f2b8012..ab6a97d7 100755 --- a/tests/rm.test +++ b/tests/rm.test @@ -11,6 +11,8 @@ echo "abcdefghijklmnopqrstuvwxyz" > file.txt testing "text-file" "rm file.txt && [ ! -e file.txt ] && echo 'yes'" "yes\n" "" "" rm -f file* +testing "-i nonexistent" "/dev/null || echo 'yes'" "yes\n" "" "" + mkdir dir testing "empty directory" "rm -r dir && [ ! -d dir ] && echo 'yes'" "yes\n" "" "" rm -rf dir -- cgit v1.2.3