bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Ondřej Vašík
Subject: [PATCH]: ls: add --user-format option for user defined format
Date: Tue, 04 Nov 2008 13:56:00 +0100

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.

Greetings,
          Ondřej Vašík

Attachment: ls-user-format.patch
Description: Text Data

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy


reply via email to

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