bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: ls: sort on -s


From: jidanni
Subject: Re: ls: sort on -s
Date: Mon, 14 Apr 2008 08:19:02 +0800

>>>>> "JY" == James Youngman <address@hidden> writes:

JY> On Wed, Apr 9, 2008 at 4:21 AM,  <address@hidden> wrote:
>> I'm at the emacs' dired prompt,
>> ls switches (must contain -l): -ogsS
>> when I realized that -S is not good enough.
>> What I want is an additional way to sort: on the -s sizes!
>> > Just do ls -sog|sort -nr
>> I hear you saying.
>> But I can't. This is dired I'm in.

JY> Surely this is an Emacs issue.   If we provide some kind of special
JY> case in coreutils, the problem will still exist on platforms that
JY> Emacs supports (many!) where the user is not running coreutils.

James is right. Emacs' dired-sort-toggle-or-edit,
   "With a prefix argument you can edit the current listing switches instead"
needs a more general method where one can pipe the results of a shell
command instead of only being "allowed" to change some ls switches.

(P.S., Gmane readers: I'm posting to both bug-gnu-emacs and
bug-coreutils, which will trigger a gmane.org bug making this post not
appear in the indexes of gmane's web interface.)




reply via email to

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