[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45780] inode column is badly aligned when running 'find <dir> -ls'

From: Hans Deragon
Subject: [bug #45780] inode column is badly aligned when running 'find <dir> -ls'
Date: Wed, 28 Oct 2015 13:40:39 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36

Follow-up Comment #6, bug #45780 (project findutils):

What if you put some intelligence into find?  Fetch the first 1024 entries and
figure out the biggest inode number.  Then use that value as the size of the
inode.  Probably most of the time, it will be ok for the rest of the output.

This would mean to cache the first 1024 entries if find is called
interactively.  However, if piped, then current behavior prevails.  An option
should be provided to force the 1024 entries behavior even when piped in case
someone wants to save the output for a report and wants proper alignment.

There could also be an option to cache all entries and properly align the
output.  Another one would allow to change the default 1024 value.  There
could be an option to force the size of the column, no question asked.

There are a lot of options.  It is up to you to decide what is best, and what
you can actually do with the time you have.


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]