aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDenys Nykula <nykula@ukr.net>2019-11-12 16:55:35 +0000
committerRob Landley <rob@landley.net>2019-11-12 19:50:51 -0600
commitae34569fd0e2242ea85ffec193d825dd006d1038 (patch)
tree1361867a8451b6f793514b6deb1b994ada051468 /tests
parentdf6aaa39fbf7baa82e27e7eb83673629284966d0 (diff)
downloadtoybox-ae34569fd0e2242ea85ffec193d825dd006d1038.tar.gz
Don't rm prompt for nonexistent, just warn.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/rm.test2
1 files changed, 2 insertions, 0 deletions
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/zero rm -i file.txt 2>/dev/null || echo 'yes'" "yes\n" "" ""
+
mkdir dir
testing "empty directory" "rm -r dir && [ ! -d dir ] && echo 'yes'" "yes\n" "" ""
rm -rf dir