Embarrassing mistake on my part. :)

-- 8< --

* tests/rm/dash-hint.sh: Add the file name argument to grep, as I
intended when adding this test.
---
 tests/rm/dash-hint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/rm/dash-hint.sh b/tests/rm/dash-hint.sh
index 249f34803..0b72f8eef 100755
--- a/tests/rm/dash-hint.sh
+++ b/tests/rm/dash-hint.sh
@@ -22,7 +22,7 @@ print_ver_ rm
 # Check that the hint is not shown when there isn't file named "-foo".
 returns_ 1 rm -foo > out 2> err || fail=1
 compare /dev/null out || fail=1
-grep 'to remove the file' && fail=1
+grep -F 'to remove the file' err && fail=1
 
 # Check that the hint is shown when there is file named "-foo".
 echo a > -foo || framework_failure_
-- 
2.53.0


Reply via email to