Date: Tue, 19 Dec 2000 15:19:58 +0200 From: Peter Pentchev <roam@orbitel.bg> To: arch@FreeBSD.org Subject: rm(1)'s -v behavior - filenames vs. paths? Message-ID: <20001219151957.B559@ringworld.oblivion.bg>
next in thread | raw e-mail | index | archive | help
Is there a reason that rm -v only shows the filename of the files
being removed, instead of e.g. a relative path? The attached patch
makes it much easier to monitor the progress of a rm -rfv on a large
tree (e.g. a very-very-very mangled FreeBSD source tree, which is being
scrubbed before cvs'ing it all from scratch).
If I'm trampling on any standards, feel free to point it out :)
I do not have access to any ANSI/IEEE/POSIX standards at this time,
except for the online SUSv2 reference.
G'luck,
Peter
--
If the meanings of 'true' and 'false' were switched, then this sentence wouldn't be false.
Index: rm.c
===================================================================
RCS file: /home/ncvs/src/bin/rm/rm.c,v
retrieving revision 1.31
diff -u -r1.31 rm.c
--- rm.c 2000/06/17 14:19:32 1.31
+++ rm.c 2000/12/18 14:35:38
@@ -253,7 +253,7 @@
if (rval == 0 || (fflag && errno == ENOENT)) {
if (rval == 0 && vflag)
(void)printf("%s\n",
- p->fts_accpath);
+ p->fts_path);
continue;
}
break;
@@ -263,7 +263,7 @@
if (rval == 0 && (fflag && errno == ENOENT)) {
if (vflag)
(void)printf("%s\n",
- p->fts_accpath);
+ p->fts_path);
continue;
}
break;
@@ -275,7 +275,7 @@
if (rval == 0 || (fflag && errno == ENOENT)) {
if (rval == 0 && vflag)
(void)printf("%s\n",
- p->fts_accpath);
+ p->fts_path);
continue;
}
}
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001219151957.B559>
