summaryrefslogtreecommitdiffstats
path: root/bin/ls
Commit message (Collapse)AuthorAgeFilesLines
* Add missing "else", without whom the prev. commit is a null change.hoek1998-08-021-4/+3
| | | | Fix a 2nd level indentation style bug.
* Allow env. variable LS_COLWIDTHS to specify minimum column widths,hoek1998-07-294-13/+97
| | | | | | | | | | | 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>
* Correct use of .Nm. Typo.charnier1998-05-151-11/+11
|
* .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENTphk1998-05-131-2/+2
| | | | | | PR: 6599 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* Add note about BLOCKSIZE variable to -s flag.imp1998-04-291-2/+3
|
* Fix nasty error in len_octal, result not initializedache1998-04-251-2/+2
|
* Fix ctype error #1 - chars must be unsignedache1998-04-251-2/+2
|
* Remove the bogus -? option after reading the getopt() manual :)des1998-04-243-8/+6
|
* o Removed two unused variables (f_dirname and f_newline) in ls.cdes1998-04-243-27/+58
| | | | | | | | | | | | | | | o Added the -H and -P options for treatment of symbolic links. o Removed the #ifdef BSD4_4_LITE, since it does not seem to do anything useful o Fixed up prn_octal() so its output looks more like that of AT&T Unices when -b is given. The next two lines apply only to the first two changes above: PR: bin/6140 Submitted by: Max Euston
* o Renamed '-b' (show unprintables in octal) to '-B'des1998-04-245-25/+97
| | | | | | | | 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.
* Added -b option to display unprintables in octal.des1998-04-216-11/+71
| | | | PR: 1315
* Make a couple of the stat flags dependent on the sys/stat.h header filejb1998-01-091-1/+9
| | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-)
* Use consistent spelling,hoek1997-12-251-2/+2
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* environmental -> environment.charnier1997-09-181-3/+3
|
* Fix sorting of directories when doing '-d'.sef1997-09-181-10/+6
| | | | | PR: bin/4558 Submitted by: Keith Bostic
* Observe precedence set by Phillippe Charnier in adding ansteve1997-08-075-15/+28
| | | | rcsid.
* Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.steve1997-08-077-35/+21
|
* Submitted by: Whistle Communications (archie Cobbs)julian1997-06-021-1/+9
| | | | | | | | | | | | | | | | | | These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems
* Enable whiteout code since we now have the lite2 support for them.dfr1997-04-292-4/+4
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-3/+3
| | | | posix standard on the topic.
* make usage() and SYNOPSIS agree with each other and add missing optionsobrien1997-03-262-4/+4
| | | | documented in the DESCRIPTION section.
* Typo fix.mpp1997-03-071-2/+2
|
* Add a missing period in the -o option description.mpp1997-02-251-3/+10
| | | | | | Document the depreciated -g option. Inspired by: OpenBSD PR# 119
* Revert $FreeBSD$ to $Id$peter1997-02-229-9/+9
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-149-9/+9
| | | | | | | | 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.
* Minor mdoc cleanup.mpp1997-01-111-2/+4
|
* Add a blurb describing the fact that ls will print thempp1997-01-111-2/+8
| | | | | | | year in place of the hour/minute fields if the time is more than 6 months in the past or future. Also some minor mdoc cleanup.
* Make ls include the year when displaying times that are more thanmpp1997-01-111-2/+6
| | | | | | 6 months into the future. Closes PR# 1657. Submitted by: Sakari Jalowaara <sja.home.tekla.fi>
* Use strcoll instead of strcmp for file names comparationache1996-12-281-3/+3
| | | | Should be in 2.2
* Merge Lite2 mods, and -Wall cleaning. undelete(2) cruftsteve1996-12-147-19/+63
| | | | | | not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel.
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-2/+2
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* set error status on exit, to be consistent with manpage and standard commands.adam1996-08-271-2/+6
|
* Use unsigned char for isprintache1996-03-311-2/+2
|
* Remove unused include of utmp.h from print.c. Closes PR# 486.mpp1996-01-201-2/+1
| | | | Submitted by: Tom Samplonius <tom@haven.uniserve.com>
* Print dev minor #'s > 255 in hex.joerg1995-12-301-3/+7
| | | | Reviewed by: jkh, kuku, phk
* Change locale to LC_ALL, there no bitmaskache1995-10-261-2/+3
|
* Change LC_ALL to LC_CTYPE|LC_TIME - small optimizationache1995-10-231-2/+2
|
* Add setlocale LC_ALLache1995-10-231-1/+3
|
* Uncomment out references to FIFOs for the -F and -l options.mpp1995-09-261-6/+7
| | | | | | Also mention sockets in the text for -F. Partially obtained from the NetBSD commit mail list.
* Change ctime to strftime %c to use national date/time representationache1995-08-081-3/+3
|
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-3/+2
| | | | which is no longer bogusly installed in /usr/include.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
| | | | Reviewed by: phk
* Having BLOCKSIZE=K and using "-k" option ls would use 2K block size...phk1995-03-231-4/+6
|
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-03-192-4/+5
| | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
* Make ls recognize the COLUMNS environmental variable, evenjoerg1994-12-181-2/+6
| | | | | | | in cases where it does not run on a terminal. This is important e.g. for commands like env COLUMNS=132 ls -CR | lpr -Psome-wide-printer
* Back out ctype fix, unneded with new ctypeache1994-10-091-2/+2
|
* Added $Id$dg1994-09-249-0/+14
|
* Make ls ctype-awareache1994-09-211-1/+1
|
* Add support for '-k' option to print file allocation space in 'K' instead ofpst1994-09-192-2/+11
| | | | | | | system blocks. This is semi-original code, not the same way this crufty option was handled in FreeBSD 1.x.
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-269-0/+1583
OpenPOWER on IntegriCloud