Bug 149983
Summary: | ls missing option to list directories first | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | ilja lunev <uxadm> |
Component: | coreutils | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | shillman |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-05-14 10:44:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ilja lunev
2005-03-01 07:36:44 UTC
> 1. There is no option to get a properly ascii sorted output (see examples below). Instead it relies on the LANG variable You can set the LC_COLLATE=C variable to get ASCII sorting without affecting other locale variables (see POSIX). > 2. On HP-UX a regular 'ls' done as super-user always lists all files (except . and ..). There is no option for this on Linux. I think the -A option does what you want. > 3. There is no option to get directories before files (like windows does it) This feature enhancement has been requested previously, for example: http://lists.gnu.org/archive/html/bug-coreutils/2004-03/msg00033.html I also would like an option to sort directories first, but it seems that coreutils people dislike it and ignores every patch or message that suggests this addition (which is quite trivial). The main objection I think is that sort-directories-first isn't orthorgonal to sort-by-name/size/date etc. In other words: What if someone wants this option, but with things sorted on size or extension, rather than on name? Closing as 'upstream', since this issue is known to the upstream developers. |