| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
According to the man page, when neither -H/-L nor -F/-d/-l are given, -H is
implied. This agrees with POSIX, GNU ls and Solaris ls. This means that -p,
although it is very similar to -F, does not prevent the implicit following
of symlinks.
PR: standards/128546
|
|
|
|
|
|
| |
to be rewritten for each file we want to check ACL on. Without
this change, ls(1) would check only the ACL on the first file
to list.
|
| |
|
| |
|
|
|
|
| |
Tabs Noticed by: Antoine Brodin
|
|
|
|
|
| |
- Bump document date for the addition of the -D option.
- Reformat a sentence to look like a real sentence.
|
| |
|
|
|
|
|
|
|
|
| |
# ls -lW
total 2
-rw-r--r-- 1 root wheel 6 Oct 18 14:46 file1
ls: ./file2: No such file or directory
w--------- 0 root wheel 0 Jan 1 1970 file2
|
|
|
|
|
|
|
|
| |
- Document how whiteouts look in the long output. [1]
- Sort entry types.
- Fix description of the socket type.
PR: docs/51921 [1]
|
| |
|
|
|
|
| |
specified wins to make their interaction less confusing.
|
|
|
|
|
|
|
|
|
| |
flag to use a time other than modtime (-c, -u, or -U), the output would
actually be sorted by the specified time rather than size. This does
alter the behavior in the case where both -S and -t are specified. Now,
-S is always preferred. Previously, -t was preferred if one of -c, -u, or
-U was specified, and -S was preferred otherwise. Perhaps -S and -t should
override each other (last one specified wins).
|
| |
|
|
|
|
|
|
|
| |
sorting.
Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
files is too much and hard to follow. Instead, make the -I option
just mean "do not automatically set -A for root". That is, if -A
is explicitly set, -I is ignored. Also, document -I in usage().
(The ls.c diff is better viewed relative to rev. 1.80.)
No objection: mux
Silence from: mnag
MFC after: 3 days
|
|
|
|
|
| |
Spotted by: ru
MFC after: 3 days
|
|
|
|
|
|
| |
PR: bin/86710
Submitted by: Marcus Alves Grando
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
| |
PR: docs/84765
Submitted by: garys
Approved by: keramida
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
sort(1). This functionality is provided by the -S option now, and it
is useful even though a similar effect is achievable with sort(1),
since the latter doesn't work in combination with -h. This option is
also present in NetBSD, OpenBSD, and GNU fileutils, so there's clearly
a demand for it.
Noticed by: asmodai
|
|
|
|
| |
particular order.
|
|
|
|
|
|
|
|
| |
have this option with identical semantics (sorting large files first).
-r can be used to reverse the sort if that is desired.
PR: 81625
Submitted by: Kostas Blekos <mplekos@physics.upatras.gr>, keramida
|
| |
|
| |
|
|
|
|
| |
Sort standard sections in the (documented) preferred order.
|
|
|
|
|
|
|
|
|
|
|
| |
regardless whether the output is to a terminal or not. As this is
consistent with the SUSPv2 specification (even though we do not
otherwise fully implement SUSPv2's ls(1) options), document this as it
is now, rather than trying to change the behaviour itself.
PR: docs/76072
Submitted by: Sebastian Rey <Sebastian.rey@gmx.net>
MFC after: 1 week
|
| |
|
| |
|
|
|
|
|
|
| |
line after the empty variable declarations.
Reviewed by: md5
|
|
|
|
|
|
|
|
| |
the [acm]time are the same. I was going to use Scott's patch, but I
couldn't get the style quite right, so I used a patch of my own.
Submitted by: Scott Mitchell <scott+freebsd at fishballoon.org>
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
have no entries to print (either due to an empty directory or an
error). This makes the -l and -s options more consistent, like
Solaris and (Debian) Linux. To make this happen, tweak two
optimizations on the second call to display():
- Don't skip display() altogether, even if list == NULL.
- Don't skip the call to the printfn in display() if we
need to print the total.
PR: 45723
|
|
|
|
|
| |
if there are no entries, these functions may be called to print the
total number of blocks (0) for consistency's sake.
|
|
|
|
|
|
| |
PR: bin/67392
Submitted by: Matthew Emmerton <matt@gsicomp.on.ca>
MFC in: 1 week
|
|
|
|
| |
Reminded by: jhb
|
| |
|
|
|
|
| |
unprintable characters have a "width" of -1.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LC_CTYPE setting) when determining which characters are printable.
This is an often-requested feature.
Use wcwidth() to determine the number of column positions a character
takes up, although there are still a few places left where we assume
1 byte = 1 column position, e.g. line-wrapping when handling the -m option.
The error handling here is somewhat more complicated than usual: we do
our best to show what we can of a filename in the presence of conversion
errors, instead of simply aborting.
|
|
|
|
| |
OK'ed by: imp, core
|
|
|
|
|
|
|
|
|
|
| |
will print them (i.e., number of successful calls to acl_get_entry()
exceeds 3). This makes O(1) what was O(num_TYPE_ACCESS_ACLs).
This is a slightly modified version of submitter's patch.
PR: bin/65042
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Sizes in the range 1000 -- 1023 units require four characters width
for the integer; increase the field width to accomodate this.
2. Sizes in the range 9.95 -- 10 units were being displayed as "10.0"
units; adjust the logic to fix this, and now that we've got an extra
character of field width, print fractional units if the size is less
than 99.95 units.
3. Don't display sub-byte precision.
This should mean that the following sizes are displayed:
0B .. 1023B
1.0U .. 9.9U
10.0U .. 99.9U
100U .. 1023U
for values of U in "KMGTPE".
PR: bin/63547
Pointy hat to: cperciva
Approved by: rwatson (mentor)
|
|
|
|
|
|
|
|
| |
from log[10](largest file size), but when outputting in human-friendly
format the width is always at most 4. (eg. "123K", " 12K", "1.2K".)
PR: bin/59320
Approved by: rwatson (mentor)
|
|
|
|
| |
Approved by: re(scottl)
|
| |
|
|
|
|
|
|
| |
PR: 51493
Submitted by: Walter Belgers
MFC after: 1 month
|
|
|
|
|
| |
Spotted by: harti
MFC after: 3 days
|
|
|
|
|
|
| |
PR: 54294
Submitted by: Per Hedeland <per@hedeland.org>
MFC after: 3 days
|
|
|
|
|
|
|
| |
Obsolete WFORMAT= junk also removed where possible.
OK'ed by: obrien
Tested on: sparc64, alpha, i386
|
|
|
|
|
| |
PR: 35523
Submitted by: Tomas Svensson <tsn@gbdev.net>
|