bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH]: ls: add --user-format option for user defined format


From: Pádraig Brady
Subject: Re: [PATCH]: ls: add --user-format option for user defined format
Date: Tue, 4 Nov 2008 13:19:44 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Ondřej Vašík wrote:
> Hello,
> as it was in TODO file and as I guess it could be useful,
> I made --user-format long option enhancement to ls. and added
> documentation for it to --help and info pages.
> This is base approach, I guess some reduction of common sections should
> be done (print_escape_char() and similar functions are used in more
> programs), but I tried to reduce that patch - will do that later.
> This long option was tested by few friends, so format seems to work
> properly (at least on GNU/Linux machines), it's based on stat's
> user-defined format parser. There are some new features added into
> that user-format - e.g. displaying mode as octal number, splitting mode
> string to separate section, choosing column width for entries. It 
> could be easily extended when needed. Test to compare specific
> user-format output with ls -l was also added.

Thanks for doing that.
However I thought that item had been removed from the TODO:
http://lists.gnu.org/archive/html/bug-coreutils/2008-02/msg00115.html
This is a large patch to do essentially what `find -printf` already does.

Pádraig.




reply via email to

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