Dan Jacobson <[EMAIL PROTECTED]> wrote:
> $ stat .|sed -n 's/ $/&<-watseful trailing blanks/p'
> Device: 349h/841d       Inode: 16321       Links: 32   <-watseful trailing blanks

Thanks.  I've just fixed that:

        * src/stat.c (do_stat): For link count at end of line, use %h format,
        instead of %-5h.  The latter would make stat emit trailing spaces.
        Reported by Dan Jacobson.

Index: stat.c
===================================================================
RCS file: /fetish/cu/src/stat.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -u -r1.54 -r1.55
--- stat.c      23 Jul 2003 07:29:55 -0000      1.54
+++ stat.c      22 Aug 2003 08:20:05 -0000      1.55
@@ -674,7 +674,7 @@ do_stat (char const *filename, int follo
              format =
                "  File: %N\n"
                "  Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n"
-               "Device: %Dh/%dd\tInode: %-10i  Links: %-5h\n"
+               "Device: %Dh/%dd\tInode: %-10i  Links: %h\n"
                "Access: (%04a/%10.10A)  Uid: (%5u/%8U)   Gid: (%5g/%8G)\n"
                "Access: %x\n" "Modify: %y\n" "Change: %z\n";
            }


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to