coreutils
[Top][All Lists]
Advanced

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

Re: Symlink grouping with --group-directories-first in ls


From: Pádraig Brady
Subject: Re: Symlink grouping with --group-directories-first in ls
Date: Thu, 27 Dec 2018 06:37:41 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 23/12/18 19:35, Amin Bandali wrote:
> Hello,
> 
> I recently discovered ls’s --group-directories-first option to list
> directories before files.  It seems that the option treats all symlinks
> as files, and thus doesn’t group symlinks to directories with the actual
> directories on the top.
> 
> It would be great if ls had an option to group directory symlinks with
> the real directories when --group-directories-first is specified.

Good point.
It probably should just do that with no other options.
The attached implements that.

cheers,
Pádraig

Attachment: ls-group-symlinks.patch
Description: Text Data


reply via email to

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