summaryrefslogtreecommitdiff
path: root/bin/ls
AgeCommit message (Collapse)Author
2014-02-22fix -w outputmlelstv
2014-02-22add u option to getopt again.mlelstv
2014-02-21Add -X (don't cross mount points when recursing) from tls@christos
2014-02-20Use .Nm for 'ls'.wiz
2014-02-20Add -O (only leaf files) and -P (print full path), from tls@christos
2013-05-02remove whitespace from end of file.zafer
introduced by erh in 1.49
2012-11-20PR/47167abs
ls.1: - Sort options in `SYNOPSIS', the option list, and texts within the man page; - improve wording; - improve macro usage; - use more consistency regarding (locations for) information about which options override which; - cross-reference `-d' and `-R'; - simplify description of `-k', removing redundant and unneeded information; - sort entry type list (but leave `-a' and `-A' as they are, given their meaning); - correct / augment description of `BLOCKSIZE' environment variable in `ENVIRONMENT' section; - bump date. ls.c: - Sort options in `usage'; - augment comment about when to figure out block size.
2012-10-21Use more markup.wiz
2012-10-21clarify that BLOCKSIZE also influences the total in long outputjschauma
2012-06-29handle realloc failureyamt
2011-08-29Move usage and mark it static+deadjoerg
2011-04-02Wording fixes from Ryo HAYASAKA, thanks.mbalmer
2011-03-15- use printf(3) "'" format to do thousands grouping instead of custom version.christos
- fix sign format inconsistencies.
2011-03-15Add -M to usage.wiz
2011-03-15Remove trailing whitespace. Add -M to usage.wiz
2011-03-15PR#7540, add a -M option to ls which causes sizes (and number of blocks) to beerh
displayed with comma separators (or a locale specific separator).
2010-12-17Fix cross-reference, dir(5) -> dirent(3).njoly
2010-08-18Fix broken indentation. No functional change.enami
2010-07-08Add #include <sys/param.h> for howmany().rmind
2010-05-14Reorder sections to canonical order. Use .Ex -stdjoerg
2010-04-05\\ -> \ejoerg
2010-04-02make it obvious to grep that we are checking ctime.christos
2010-04-01handle ctime returning NULLchristos
2009-02-14fix -Wsign-compare issueslukem
2008-12-28prepare for 64 bit dev_tchristos
2008-11-02Implement a printtotal function to avoid code repetition.ahoka
2008-09-25Change '-n' so that it implies '-l' rather than requires '-l'.lukem
Brings ls(1) closer to POSIX.1 2004. Per discussion with Thomas Klausner and Igor Sobrado.
2008-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-06-06modify a comment in previous changesoda
2007-06-05Apply SODA Nuriyuki's patch for multibyte support.wiz
Based on soda-revised2.patch (in private mail) with a change from soda on tech-userlevel. Ok christos@.
2006-12-14Complete the move of string_to_flags() and flags_to_string() from thehe
bin/ls sources to libutil: o Bump libutil minor version number o Fix uses to include <util.h> to pick up the function definitions o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14The "#ifdef UNUSED_BLOCK" in stat_flags.c wasn't so unused afterhe
all -- it was used by the mtree source. So, instead do an "#ifdef MTREE", and define that one when building mtree.
2006-12-14Pass lint. From Anon Ymouschristos
2006-09-23PR/34499: mac at S dot culver dot net: ls allocates more memory than neededelad
Applied patch, thanks!
2006-09-22PR/33635: Anne Bennett: Document 'a' and 'A' flags in ls(1).elad
strmode(3) already documented these, so use the description from there.
2006-08-21from zafer: you can have either -k or -h but not both since it does not makechristos
sense.
2006-04-08Fix date (no leading zero), fix xref: sticky(7) not (8).wiz
2006-04-08Address PR 30374 as suggested in there:jschauma
"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.
2006-04-08s/non-graphic/non-printable/ to match with the code.yamt
2006-03-22Coverity CID 1755: Add fts_close() in traverse.christos
2005-10-31Somehow missed this in the last commit, where I only changed the commentaryjschauma
to reflect the actual change (plus minor nits). So here's the actual change: Rather than '-h' suppressing '-s' when using '-l', make it display the blocks used in human readable form, as suggested by Alan Barrett and Daniel Carosone. (Missing bits spotted, as usual, by wiz@.)
2005-10-26Rather than '-h' suppressing '-s' when using '-l', make it displayjschauma
the blocks used in human readable form, as suggested by Alan Barrett and Daniel Carosone.
2005-10-23document that -h makes -l suppress -s.jschauma
(Ie 'ls -lhs' == 'ls -lh')
2005-10-14Honor the COLUMNS variable even when producing output not to a terminal,jschauma
as long as a specific format (that could use COLUMNS) was requested. This makes env COLUMNS=50 ls -C > file not surprise the user who clearly wanted some specific output in the file.
2005-10-10Bump date for previous.wiz
2005-10-10Document that '-g' overrides -1, -C, -m, and -x, but is _always_jschauma
overridden by '-l', even if '-g' was specified last.
2005-08-13Document -L correctly. PR #30430.elad
2005-06-17Sort options (description).hira
2005-06-17- Add -h to usage.hira
- Use set/getprogname(3).