This is a discussion on Re: new in rm within the lucky.openbsd.tech forums, part of the OpenBSD category; --> On 6/23/06, Damien Miller <djm@mindrot.org> wrote: > On Thu, 22 Jun 2006, Matthias Kilian wrote: > > > On ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 6/23/06, Damien Miller <djm@mindrot.org> wrote: > On Thu, 22 Jun 2006, Matthias Kilian wrote: > > > On Thu, Jun 22, 2006 at 11:29:06PM +0400, free-dev-serg wrote: > > > this patch give your rm command (with options -v) print name of removing file: > > > > Why? > > when doing "rm -rf /directory-with-lots-of-crap", it is useful to know > how things are progressing. > > > BTW: your patch looks a little bit desrever. > > More substantively: > > 1) you don't need to wrap printf() in its own function - that is just > silly indirection > 2) It should probably print the file/directory name *after* successfully > removing it. > Or it could Print the file/directory name when it begins to remove and after a few dots print "OK" once it is removed. Just a small suggestion. Kind Regards Siju |