sobrado
679f6f8f47
replace ".Ar file ..." with ".Ar" whenever possible.
...
ok jmc@
2009-08-16 09:41:07 +00:00
jmc
45b7d3e1f6
remove a sentence from COLUMNS that says nothing; ok otto
2009-05-12 19:22:32 +00:00
todd
92806c0e4f
do not ignore COLUMNS in -C mode, even if !isatty(STDOUT_FILENO)
...
from FreeBSD
ok millert@, posix checked by jmc@
2009-05-06 18:47:32 +00:00
jmc
c2608f173f
updates to IEEE Std 1003.1-2008;
2009-02-08 17:33:01 +00:00
jmc
99332e389a
bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
...
updates to follow;
2009-02-08 17:15:08 +00:00
jmc
3f0f91116e
remove some duplicate information from the description of -g: this
...
information is already provided further down the page;
ok sobrado
2009-01-28 11:50:51 +00:00
sobrado
e4281b20e6
replace standardized text concerning the exit values of applications
...
with the right mdoc macros.
2009-01-19 09:46:59 +00:00
otto
b721e737e1
add a comment explaining the rather obscure decision when to recurse
...
or not; ok millert@ pedro@
2008-12-30 15:37:30 +00:00
otto
1bc65825a6
fix previous; e.g. ls /var/spool/mqueue as an oridinary user. ok
...
millert@ thib@
2008-12-29 14:49:27 +00:00
otto
a9129fda85
Kill a race condition which occurs when listing a directory containing
...
an empty dir non-recursively. By not setting FTS_SKIP on the empty
subdir, a next iteration of the fts_read loop recurses into the
subdir, which might not be empty any more. Report by jacekm@,
troublespot identified by pedro@; ok pedro@ millert@
2008-12-24 20:57:21 +00:00
jmc
db1c076965
more updates on which args do and do not mix (doc only, this time):
...
- list -f in the -cStu "exclusive group" (we already document that -f
overrides these options)
- note that our implementation of -f differs from posix
- -k and -u do not override each other: those options are not used together
ok sobrado
2008-09-29 16:42:41 +00:00
jmc
a40a3c37ed
- make -ln and -nl combinations behave identically. currently -l overrides -n.
...
behaviour now similar to netbsd/freebsd/solaris.
- make -gn and -ng combinations behave identically: long listing, numeric
group ID, no user ID. currently -g overrides -n. behaviour now similar to
netbsd/solaris.
- allow -m and -x to override -1Cgln (and each other) if specified last.
currently -m and -x can be overriden even if they are specified last.
behaviour now similar to netbsd/freebsd. fixes PR 5785 from
Jacek Masiulaniec.
- update man page to reflect reality.
ls.c diff based on Jacek Masiulaniec's diff from PR 5785, and extended by
sobrado. this work is really a joint effort from sobrado and myself.
i don't know about igor, but this particular diff has nearly killed me...
ok millert otto
2008-09-04 15:44:41 +00:00
jmc
9490d37cb6
convert to new .Dd format;
2007-05-31 19:19:00 +00:00
jmc
8d7df9c085
note some flags which differ in behaviour from posix;
...
suggested by millert
2007-05-29 15:17:54 +00:00
jmc
0f3f4dbc30
- consistent STANDARDS blurb
...
- note which options are extensions to POSIX
discussed w/ deraadt otto millert
2007-05-29 15:04:59 +00:00
jmc
63f8730006
small update, now that -g does something; ok millert
2007-05-08 13:36:34 +00:00
millert
947f7ba6d0
Change the -g flag from a no-op to be POSIX conforming. We allow the
...
-l flag to override -g regardless of its position on the command line
for backwards compat with 4.3BSD. From NetBSD.
OK jmc@, tom@, sobrado@
2007-05-07 18:39:28 +00:00
sobrado
e3a472fe62
the non existent -W option is removed from the usage()
...
ok by jmc@
2007-04-25 08:16:10 +00:00
jmc
fa97a36ead
minor shuffle; from Igor Sobrado and myself
2007-03-03 23:26:12 +00:00
dhill
4857c473aa
Change maxsize to type off_t.
...
Add a cast for portability's sake.
"Right..." @deraadt
2006-04-13 03:14:18 +00:00
jmc
b3b0658ba3
timezone -> time zone
2005-11-30 11:18:27 +00:00
deraadt
7cc1b54ae0
another unused variable found by lint
2005-11-30 00:57:25 +00:00
otto
ed3e8c994f
kill unused var found by lint. ok deraadt@
2005-11-29 20:32:22 +00:00
deraadt
4e4bc84146
do not exit from ls_main() but return; spotted by lint
2005-11-25 20:37:45 +00:00
millert
0278adda01
remove whiteout support
2005-06-15 17:47:17 +00:00
jmc
b8d896800f
- sort options
...
- sync usage()
- remove unnecessary quoting
2005-03-24 22:53:15 +00:00
jaredy
bb6ffffeff
use fts_path if fts_name is not available, tweak and ok millert
2005-03-10 00:22:08 +00:00
otto
abf96da08a
Remove unneccesary cast to long long and %llu format; print using %lu.
...
Spotted by tom@, ok millert@
2005-01-10 20:16:15 +00:00
jmc
7c8121b06d
-l outputs total always, not just to terminals (netbsd -r 1.50);
...
-l output is one per line (like -1);
-x also inhibits one per line output;
2005-01-10 15:36:17 +00:00
millert
4457c27063
Use angle bracket macros instead of literal angle brackets. OK jmc@
2004-09-16 20:48:35 +00:00
jaredy
ef7ec57435
move example descriptions before the examples themselves
...
ok jmc
2004-07-23 00:42:22 +00:00
otto
445ea396fe
Unbreak alignment of fields when using -lh.
...
ok deraadt@
2004-04-02 07:31:06 +00:00
jmc
498a23797f
use POSIX description of -L, since it's much clearer;
...
ok henning@
2003-12-08 11:33:01 +00:00
deraadt
c624956833
free(NULL) is valid
2003-09-26 00:48:44 +00:00
deraadt
381b91eb3f
realloc fixes: unallocate for next use if realloc fixes; do not incr size;
...
do not p = realloc(p, ...; ok from ho, cloder
2003-09-24 20:36:36 +00:00
jmc
c1ed470ca5
escape punctuation;
...
ok deraadt@
2003-09-02 18:09:43 +00:00
jmc
582c0f4f3d
-l and -n options display owner, group and other permissions;
...
from Jonathan Gray via FreeBSD PR 54294;
2003-08-27 08:06:49 +00:00
tedu
91ea06e0c5
-h, human readable sizes. from a jonathon gray mail to tech@
...
ok ian@ millert@
2003-08-06 19:09:09 +00:00
deraadt
84f96e5e10
spacing
2003-07-29 00:24:14 +00:00
deraadt
a12b0823d6
missing protos
2003-07-02 21:19:33 +00:00
deraadt
28416801cb
ansification, art ok
2003-06-11 23:42:12 +00:00
millert
29295d1c5c
Remove the advertising clause in the UCB license which Berkeley
...
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02 23:27:43 +00:00
jmc
e4c1364e33
- section reorder
...
- merge COMPATIBILITY into STANDARDS
- kill unneeded Ns macros
- replace reference to itself with .Nm
2003-05-29 19:36:58 +00:00
deraadt
150e4ac30a
strlcpy; millert ok
2003-04-02 19:43:52 +00:00
deraadt
cbab7b708a
more .Li
2003-03-12 20:12:34 +00:00
deraadt
3cc9ab5fae
utmp.h not needed
2002-08-01 21:49:57 +00:00
millert
21162ec0e3
o Remove local prototypes for group_from_gid() and user_from_uid()
...
since they are prototyped in grp.h and pwd.h.
o Increase size of 'buf' to 21 since we store the string representation
of a u_quad_t in it (max 20 chars + the NUL).
o Minor KNF wrt pointers in boolean context.
From Denis Afonin
2002-03-12 01:05:15 +00:00
millert
c72b5b24e1
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-16 21:27:05 +00:00
mpech
f314c7103f
Initial patch.
...
When you give command examples in a manual page prefix them with
$ command
or
# command
deraadt@ ok
2002-02-11 18:43:50 +00:00
mickey
bf0f8e2c1a
fix the history refs
2002-01-24 20:33:45 +00:00
mpech
9517852ab8
o) __progname aria;
...
millert@ ok.
2001-09-06 13:29:08 +00:00
deraadt
c28fedd73d
-Wall
2001-07-09 00:37:53 +00:00
aaron
5cb47b198e
Remove completely redundant introductory sentences in ENVIRONMENT sections.
2001-05-01 17:58:00 +00:00
aaron
e3085f41af
- Some section shuffling: conform to the standard order documented in mdoc(7)
...
- .Sh AUTHOR -> .Sh AUTHORS
2000-11-09 23:58:53 +00:00
aaron
f1ba34738e
Change all option list specifications to ".Bl -tag -width Ds". Most man
...
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.
2000-11-09 17:51:53 +00:00
aaron
93256fbc58
Add some rudimentary EXAMPLES sections and standardize the way we display
...
existing EXAMPLES sections.
2000-10-18 06:55:06 +00:00
ericj
86c57c4cff
oops, what was i thinking?
2000-07-23 06:16:42 +00:00
ericj
666167c87f
un .Xr chflags
2000-07-23 06:12:52 +00:00
mickey
4681a17541
bye-bye
2000-07-19 19:43:12 +00:00
mickey
b802a6c280
new strtofflags/fflagstostr
2000-07-19 19:27:35 +00:00
aaron
4337acb73c
Change the second sentence a bit so it doesn't seem like you're reading the
...
same thing twice; noticed by angelos@, but no beer for him yet. :-)
2000-04-19 19:04:21 +00:00
aaron
a3542fadce
- For consistency, super-user' ->
superuser' in all cases.
...
- Some punctuation fixes.
- Some `id' -> `ID'.
2000-04-15 11:45:51 +00:00
aaron
9e06ddee6d
Correct the HISTORY section to note that this command appeared in Version 5
...
of AT&T UNIX, not Version 6. Verified by strings(1)'ing a .dsk file (PDP-11
executable) containing the v5 sources, obtainable at gatekeeper.dec.com in the
directory /pub/DEC/sim/software. Idea from NetBSD PR/4790.
2000-03-24 21:41:08 +00:00
aaron
8c9265831a
Remove hard sentence breaks.
2000-03-17 18:15:11 +00:00
espie
b60c9e496b
In multi-column output, don't bother filling up last column before '\n'.
...
As a result, we gain one extra position to format multi-column output,
since there is no added space at the end of the last column. For instance,
26 long filenames now print in 3 columns instead of 2.
At first, both millert@ and I thought that ending the line on the last
column might trigger trouble on some terminals, but then I realized that
current ls may already fill the last column with a space, with no apparent
grief anywhere, and Todd agreed.
2000-01-06 21:32:40 +00:00
aaron
3c2815bf24
Document meaning of `p'-type file (FIFO) in long listing; FreeBSD PR/9117
2000-01-05 18:48:31 +00:00
espie
3273519501
Remove bogus chcnt assignments.
2000-01-05 16:02:11 +00:00
espie
78803e9c1b
Perform colwidth computation sooner, as there's no need for random
...
access if we end up doing one column output.
2000-01-05 16:00:19 +00:00
espie
f296455f59
Factor column width computation out.
2000-01-05 15:58:27 +00:00
millert
ba447631bb
fix flags_to_string() proto
1999-11-26 23:02:54 +00:00
millert
298a07a0ad
flags_to_string() and string_to_flags() should take pointers to a u_int
...
not a u_long. Fixes PR #910 .
1999-09-08 07:21:29 +00:00
aaron
18611b21d9
consistency
1999-08-17 14:03:59 +00:00
aaron
cdba08733a
start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@
1999-06-04 02:45:11 +00:00
pjanzen
7796b8dd9c
It's spelled "occurrence". Also a few other minor mods while I'm at it.
1999-05-30 02:42:05 +00:00
aaron
a2d58dea3d
improve; kwesterback@home.com, myself
1999-05-23 20:15:48 +00:00
deraadt
36776029a8
indent
1999-05-05 07:06:01 +00:00
espie
99316626ec
Repair Theo's mayhem, put -o option together again.
1999-05-03 16:27:12 +00:00
deraadt
413925e680
defer conversion of unprintable filenames till final display, permitting
...
badly named symbolic links to be handled; bug noted by dm@ fixed by d@
1999-05-01 23:54:47 +00:00
aaron
5e8340f8e3
remove duplicate description of -1 option
1999-03-03 03:03:14 +00:00
aaron
4884558f02
save cpu cycles by being more sensible about how we check conditionals
1999-02-24 16:48:02 +00:00
art
415ae12781
Break out main to an own file so we can include ls in ftpd.
1999-02-23 23:54:16 +00:00
deraadt
b94f2f8772
add -x, -p, and -m options, based on netbsd work
1999-02-20 18:59:24 +00:00
millert
260dc44adb
Don't retain "clear" state after an argument as been processed;
...
andreas@infosys.heitec.net
1999-02-14 19:58:10 +00:00
aaron
7349792ab9
always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net
1998-12-15 01:20:16 +00:00
aaron
f11c8a1845
start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
...
it's given)
1998-11-28 03:20:31 +00:00
aaron
b311932627
use .Dq/.Sq macros instead of ` ''s and
's (think typesetting and future
...
processing); kill redundant .Pp macros; other misc fixes
1998-11-06 00:34:07 +00:00
aaron
ca96134222
alphabetize SEE ALSO entries and numerically order according to section
1998-09-23 00:13:47 +00:00
aaron
f81d96df0b
First complete sweep of man pages, bin/. Command/function names previously
...
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.
1998-09-14 22:13:34 +00:00
deraadt
e2adce4c0e
realloc bug fix and two other bugs found at the same time
1998-08-15 20:23:20 +00:00
deraadt
fa39892572
fix exit code; problem reported by jsh@sun470.rd.qms.com; fix from freebsd
1998-08-07 19:45:06 +00:00
deraadt
15d6261a72
repair
1998-08-07 19:44:53 +00:00
espie
53165553e1
Document BSD4.4 flags support
1998-07-01 11:24:23 +00:00
deraadt
3b11eb1b01
doc = after socket; deberg@mit.edu
1998-06-01 03:17:04 +00:00
deraadt
81b1fe40f2
MAXPATHLEN not MAXPATHLEN+1
1998-05-18 20:36:31 +00:00
deraadt
4137163252
fix .Sh ENVIRONMENT
1998-05-13 10:33:18 +00:00
deraadt
e189ddde44
$OpenBSD$
1997-09-21 11:34:32 +00:00
deraadt
817b1966d7
make ls -d still sort files in the regular order; reported by
...
roberte@MEP.Ruhr-Uni-Bochum.de , fixed by sef@Kithrup.COM
1997-09-18 07:58:41 +00:00
deraadt
31e4d01529
i am bored enough to fix terminal space/tab uglies
1997-09-01 18:29:12 +00:00
deraadt
404227c865
option 'n' was unused, so let's come up with a feature to use it!!! YEAH!!
...
add -n (numeric uid/gid), fix some man page errors; tv@pobox.com
1997-04-01 22:59:36 +00:00
millert
4bd83475bd
From NetBSD:
...
- Correct sorting behaviour.
- Do multicolumn output in a way that's a more likely to line up evenly.
From D'Arcy J.M. Cain <darcy@druid.com>, NetBSD PR #2965 .
1997-01-03 22:36:07 +00:00