summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-26 09:02:54 +0000
committerJim Meyering <jim@meyering.net>2003-07-26 09:02:54 +0000
commit46baf9f422af2437c97dcab3169ba425d045c6dc (patch)
tree93b08fbf24920312394492279ae32fc120142d2b /src
parenta207cf0b03c537bee195cd70f5dc28ccd8f2ab6e (diff)
downloadcoreutils-46baf9f422af2437c97dcab3169ba425d045c6dc.tar.xz
* src/rm.c: Include "dirname.h".
(usage): Use base_name (program_name) in body of --help output. This lets me... * man/Makefile.am (.x.1): ...back out the kludge of 2003-07-22.
Diffstat (limited to 'src')
-rw-r--r--src/rm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rm.c b/src/rm.c
index 4779f2e3c..a2be56d45 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -49,6 +49,7 @@
#include <assert.h>
#include "system.h"
+#include "dirname.h"
#include "error.h"
#include "remove.h"
#include "save-cwd.h"
@@ -96,6 +97,7 @@ usage (int status)
program_name);
else
{
+ char *base = base_name (program_name);
printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
fputs (_("\
Remove (unlink) the FILE(s).\n\
@@ -118,7 +120,7 @@ use one of these commands:\n\
\n\
%s ./-foo\n\
"),
- program_name, program_name);
+ base, base);
fputs (_("\
\n\
Note that if you use rm to remove a file, it is usually possible to recover\n\