bug-coreutils
[Top][All Lists]
Advanced

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

[patch #3596] Sort directories before files in "ls"


From: Francesco Montorsi
Subject: [patch #3596] Sort directories before files in "ls"
Date: Fri, 9 Dec 2005 20:19:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; it-IT; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Follow-up Comment #3, patch #3596 (project coreutils):

I've added to this tracker a new patch which should address all issues raised
by Eric Blake.

The only thing left out are systems without dirent.d_type: a stat for each
file isn't going to be too slow ?
Maybe that for those systems without dirent.d_type, it's better to just not
implement this option....

Please let me know if something needs to be changed.
Francesco


NOTE1: symlinks to directories are treated as simple files.

NOTE2: I couldn't think of any long option which begins with an unused char;
so I have used the -e option together with the long option
--group-directories

    _______________________________________________________

Additional Item Attachment:

File name: ls-group-dirs.patch            Size:5 KB

<http://savannah.gnu.org/patch/download.php?item_id=3596&item_file_id=5570>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?func=detailitem&item_id=3596>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/





reply via email to

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