diff --git a/gnulib-tests/test-update-copyright.sh b/gnulib-tests/test-update-copyright.sh
index 80b8c5a..c746a9b 100755
--- a/gnulib-tests/test-update-copyright.sh
+++ b/gnulib-tests/test-update-copyright.sh
@@ -228,7 +228,7 @@ Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
# Software Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## -------------- ##
## Current year. ##
@@ -254,7 +254,7 @@ compare /dev/null $TMP-stderr || exit 1
compare - $TMP <<EOF || exit 1
'\" Copyright (C) 2006, $YEAR Free Software Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## ------------------ ##
## Surrounding text. ##
@@ -278,7 +278,7 @@ dnl Undisturbed text.
dnl Copyright (C) 1989, 2010 Free Software Foundation, Inc.
dnl Undisturbed text.
EOF
-rm $TMP*
+rm -f $TMP*
## --------------- ##
## Widest prefix. ##
@@ -307,7 +307,7 @@ compare - $TMP <<EOF || exit 1
#### Copyright (C) 1976-1988, 1999-2008, 2010-2011 Free Software
#### Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## ------------------- ##
## Prefix too large. ##
@@ -330,7 +330,7 @@ compare - $TMP <<EOF || exit 1
#### 1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
#### 2008 Free Software Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## ------------- ##
## Blank lines. ##
@@ -365,7 +365,7 @@ Copyright (C) 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985,
1986, 1987, 1988, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2008 Free Software Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## -------------- ##
## Leading tabs. ##
@@ -394,7 +394,7 @@ compare - $TMP <<EOF || exit 1
Copyright (C) 1987-1988, 1991-2011 Free Software Foundation,
Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## -------------------- ##
## Unusual whitespace. ##
@@ -431,7 +431,7 @@ compare /dev/null $TMP-stderr || exit 1
compare - $TMP <<EOF || exit 1
# Copyright (C) 1987-2011 Free Software Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## --------- ##
## DOS EOL. ##
@@ -453,7 +453,7 @@ Rem 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,@
Rem 2009, 2010 Free Software Foundation, Inc.@
EOF
compare $TMP-exp $TMP || exit 1
-rm $TMP*
+rm -f $TMP*
## --------------- ##
## Omitted "(C)". ##
@@ -474,7 +474,7 @@ compare - $TMP <<EOF || exit 1
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
EOF
-rm $TMP*
+rm -f $TMP*
## ------------------ ##
## C-style comments. ##
@@ -536,6 +536,6 @@ compare - $TMP.extra-text-space <<EOF || exit 1
Inc. ***
* End of comments. */
EOF
-rm $TMP*
+rm -f $TMP*
exit 0
diff --git a/gnulib-tests/test-version-etc.sh b/gnulib-tests/test-version-etc.sh
index 945383b..7c322e7 100755
--- a/gnulib-tests/test-version-etc.sh
+++ b/gnulib-tests/test-version-etc.sh
@@ -38,6 +38,6 @@ EOT
tr -d '\015' |
diff -c $TMP - || ERR=1
-rm $TMP
+rm -f $TMP
exit $ERR