summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rm.c b/src/rm.c
index 3e187cf80..b9b84e117 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -339,9 +339,13 @@ main (int argc, char **argv)
{
fprintf (stderr,
(x.recursive
- ? _("%s: remove all arguments recursively? ")
- : _("%s: remove all arguments? ")),
- program_name);
+ ? ngettext ("%s: remove %zu argument recursively? ",
+ "%s: remove %zu arguments recursively? ",
+ select_plural (n_files))
+ : ngettext ("%s: remove %zu argument? ",
+ "%s: remove %zu arguments? ",
+ select_plural (n_files))),
+ program_name, n_files);
if (!yesno ())
exit (EXIT_SUCCESS);
}