#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
285734 |
|
21-Jul-2015 |
allanjude |
Fix some issues with the application of libxo to ls(1)
* Add whitespace trimming to some fields (username, group, size, inode, blocks) to avoid whitespace in JSON strings * fix -m mode, was invalid JSON (repeated keys), and was missing outer array container * in -n mode, numeric uids and gids were returned as strings
Approved by: eadler (mentor) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2854
|
#
242807 |
|
08-Nov-2012 |
grog |
Replace spaces with tabs where appropriate.
Reminded by: jh@
|
#
242725 |
|
07-Nov-2012 |
grog |
Add y flag and environment variable LS_SAMESORT to specify the same sorting order for time and name with the -t option. IEEE Std 1003.2 (POSIX.2) mandates that the -t option sort in descending order, and that if two files have the same timestamp, they should be sorted in ascending order of their names. The -r flag reverses both of these sort orders, so they're never the same. This creates significant problems for sequentially named files stored on FAT file systems, where it can be impossible to list them in the order in which they were created.
Add , (comma) option to print file sizes grouped and separated by thousands using the non-monetary separator returned by localeconv(3), typically a comma or period.
MFC after: 14 days
|
#
225847 |
|
28-Sep-2011 |
ed |
Get rid of major/minor number distinction.
As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino.
Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)):
"If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question."
This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer.
Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
|
#
202945 |
|
24-Jan-2010 |
jh |
Fixes for ls(1) long format (-l) output:
- Allow -h option to work if the listing contains at least one device file. - Align major and minor device numbers correctly to the size field.
PR: bin/125678 Approved by: trasz (mentor) MFC after: 1 month
|
#
177907 |
|
04-Apr-2008 |
grog |
Add -D option to specify exact format of date and time output with ls -l.
|
#
157098 |
|
24-Mar-2006 |
jhb |
Add a new -U flag to instruct ls to use the birthtime for printing or sorting.
Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl MFC after: 1 week
|
#
139969 |
|
10-Jan-2005 |
imp |
/*- or .\"- or #- to begin license clauses.
|
#
127958 |
|
06-Apr-2004 |
markm |
Remove clause 3 from the UCB licenses.
OK'ed by: imp, core
|
#
105832 |
|
23-Oct-2002 |
rwatson |
Teach "ls -Z" to use the policy-agnostic MAC label interfaces rather than the LOMAC-specific interfaces for listing MAC labels. This permits ls to view MAC labels in a manner similar to getfmac, when ls is used with the -l argument. Next generation LOMAC will use the MAC Framework so should "just" work with this and other policies. Not the prettiest code in the world, but then, neither is ls(1).
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
#
96892 |
|
19-May-2002 |
tjr |
Add missing options required by SUSv3: -m List files across the page, separated by commas. -p Print a slash after directory names -x Same as -C but sort across the columns rather than down
Submitted by: Kyle Martin <mkm@ieee.org>
|
#
90150 |
|
03-Feb-2002 |
markm |
WARNS=4 fixes, plus a healthy dose of fixes inspired by lint.
|
#
88591 |
|
28-Dec-2001 |
joe |
Add a new flag, -h which when combined with the -l option causes file sizes to be displayed with unit suffixes; Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less.
Submitted by: nik
|
#
86922 |
|
26-Nov-2001 |
green |
Add LOMAC options (the "Z" flag in both cases) to display extra information in ls(1) and ps(1).
Sponsored by: DARPA, NAI Labs
|
#
62597 |
|
04-Jul-2000 |
assar |
make sure we do not write out non-printable characters in file names and symbolic links (by default)
PR: bin/19354 Reviewed by: silence on -current
|
#
61268 |
|
05-Jun-2000 |
joe |
* Re-implement colour support using termcap's AF and AB capabilities to manage the ANSI colour sequences. Colour support is disabled unless the TERM environment variable references a valid termcap.
* Allow optional compilation of the colour support in the Makefile, defaulting to yes. This allows us to switch it off for fixit floppies and other mediums where space is an issue and the extra bloat of statically linking with ncurses isn't acceptable.
* Display a warning if colour is requested with '-G' but support for it isn't compiled in.
|
#
61178 |
|
02-Jun-2000 |
joe |
Add colour support to /bin/ls (at a cost of 1056 bytes on my system).
It is not switched on by default and must be enabled with the -G flag. When using ls -G the output behaviour is modified with ANSI colour sequences wrapped around filenames to help distinguish file types. (Colours can be redefined in the LSCOLORS environment variable as described in the manual page.)
Colour support is silently disabled (if switched on) if stdout isn't a tty.
Based on: asami's colorls port. PR: bin/18900 && ports/18616.
|
#
50471 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
37932 |
|
28-Jul-1998 |
hoek |
Allow env. variable LS_COLWIDTHS to specify minimum column widths, effectively overriding the dynamically-sized-column feature. This is mostly useful for non-interactive use, where it may be necessary to ensure that listings taken at different times have columns that line-up correctly. I have been assured that at least one large, well-known program will soon be taking advantage of this. :-)
PR: bin/7011 Submitted by: Joel Ray Holveck <joelh@gnu.org>
|
#
35417 |
|
24-Apr-1998 |
des |
o Renamed '-b' (show unprintables in octal) to '-B'
o Added a new '-b' which behaves as in AT&T Unices (show unprintables in octal, using C escape codes when possible)
o Added '?' to the getopt() string, since the code in the switch considers it as a valid option.
|
#
35373 |
|
21-Apr-1998 |
des |
Added -b option to display unprintables in octal. PR: 1315
|
#
27958 |
|
07-Aug-1997 |
steve |
Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.
|
#
25280 |
|
29-Apr-1997 |
dfr |
Enable whiteout code since we now have the lite2 support for them.
|
#
22988 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
20417 |
|
14-Dec-1996 |
steve |
Merge Lite2 mods, and -Wall cleaning. undelete(2) cruft not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel.
|
#
3044 |
|
24-Sep-1994 |
dg |
Added $Id$
|
#
1557 |
|
26-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1556, which included commits to RCS files with non-trunk default branches.
|
#
1556 |
|
26-May-1994 |
rgrimes |
BSD 4.4 Lite bin Sources
|