Home | History | Annotate | Download | only in ls
History log of /src/bin/ls/util.c
RevisionDateAuthorComments
 1.34  29-Aug-2011  joerg branches: 1.34.44;
Move usage and mark it static+dead
 1.33  15-Mar-2011  wiz Add -M to usage.
 1.32  06-Jun-2007  soda modify a comment in previous change
 1.31  05-Jun-2007  wiz Apply SODA Nuriyuki's patch for multibyte support.
Based on soda-revised2.patch (in private mail) with a change from
soda on tech-userlevel.

Ok christos@.
 1.30  14-Dec-2006  christos Pass lint. From Anon Ymous
 1.29  08-Apr-2006  jschauma Address PR 30374 as suggested in there:

"Modify the man page to match the behaviour of "ls -q",

(done by yamt@ previously)

...
modify both the behaviour and documentation for "ls -b" and "ls -B" to
make spaces readily apparent. This could be done by adding VIS_WHITE
to the flags passed to strvis(3) in the safe_print() function in
src/bin/ls/util.c."

'ls -b' now yields foo\sbar (whitespace) foo\tbar (tab) foo\rbar (CR).
'ls -B' now yields foo\040bar foo\011bar foo\015bar.
 1.28  17-Jun-2005  hira - Add -h to usage.
- Use set/getprogname(3).
 1.27  22-Sep-2003  jschauma After last weeks addition of the '-b' flag, add '-B' and '-w' flags,
suggested by uwe@, inspired by FreeBSD. The three flags override
each other (and the '-q' flag) and behave as follows:

-B Force printing of non-printable characters in file names as
\xxx, where xxx is the numeric value of the character in octal.

-b As -B, but use C escape codes whenever possible.

-w Force raw printing of non-printable characters. This is the
default when output is not to a terminal.
 1.26  14-Sep-2003  jschauma Implement '-b' option, which, following FreeBSD, Linux and (I think) Solaris
prints octal escapes for nongraphic characters.
 1.25  02-Sep-2003  wiz Sort options (AaBb...).
 1.24  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.23  09-Nov-2002  enami Cosmetic changes.
 1.22  20-Dec-2001  soren Oops, pasto.
 1.21  20-Dec-2001  soren Sync getopt() / man page with actual getopt options.
 1.20  29-Jul-2000  lukem convert to new KNF
 1.19  22-Jun-2000  assar make sure to print file names consistenly in column mode
 1.18  17-Jun-2000  assar branches: 1.18.2;
Do not modify the file name when not printing non-printables, also do
it consistently with the file name and possible symbolic link target.

fixes bin/10385 and bin/10384
 1.17  17-Feb-1999  kleink branches: 1.17.8;
Add support for the XCU5 -p option (-F restricted to directories).
 1.16  12-Feb-1999  kleink Implement 1003.2 -m option (stream output format).
 1.15  28-Jul-1998  mycroft Delint.
 1.14  18-Jan-1998  lukem * implement -x; sort columns across the page rather than down the page
* in printcol(), don't bother building an index to the linked list if
only printing one column with printscol()...
* implement -n; prevent [gu]id->name mapping in long listings.
inspired by openbsd, but does *not* imply -l by itself.
* fix sorting with -d (or mismatched types in general). (from openbsd).
* document -g. (from openbsd).
 1.13  20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.12  07-Sep-1995  jtc Sync with 4.4lite2
 1.11  21-Mar-1995  cgd convert to new RCS id conventions.
 1.10  27-Dec-1994  mycroft Sync with CSRG.
 1.9  25-Oct-1994  mycroft Add `-o' option to usage string.
 1.8  23-Sep-1994  mycroft Merge with 4.4-Lite version.
 1.7  25-Jan-1994  cgd (1) fixup getbsize() calls
(2) convert to use err(), warn(), and warnx(), as appropriate.
 1.6  05-Dec-1993  mycroft Patches from Thomas Eberhardt <thomas@mathematik.uni-Bremen.de> to allow
sorting by size.
 1.5  07-Aug-1993  mycroft New version from uunet, with -k option readded, and 4.4 ffs--specific stuff
in `#ifdef notyet'.
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  07-Sep-1995  jtc imported from 44lite2
 1.1.1.2  22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17.8.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.18.2.1  26-Jun-2000  assar merge in fixes for printing of strange filenames in column mode from trunk
approved by releng-1-5
 1.34.44.2  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.34.44.1  21-Apr-2020  martin Sync with HEAD

RSS XML Feed