i've written this 2-lines patch to display a % progress info while copying,
when verbose is enabled.
i've never worked with coreutils so i don't know if it's written correctly,
i've made just a few tests and looks like it works...
--
"tu sei il lano e modifichi astromondi"
- Braindamage, 328:2078
http://lano.webhop.net �oO0()0Oo�oO0Oo� (Profeta di Anubi)
--- src/copy.c.orig 2003-12-24 02:07:28.000000000 +0100
+++ src/copy.c 2003-12-24 02:51:11.000000000 +0100
@@ -372,6 +372,8 @@
if (ip == 0)
{
size_t n = n_read;
+ if (x->verbose)
+ printf("%3d%%\r",n_read_total*100/src_open_sb.st_size); // **
if (full_write (dest_desc, buf, n) != n)
{
error (0, errno, _("writing %s"), quote (dst_path));
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils