summaryrefslogtreecommitdiffstats
path: root/bin/ls
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-04-04 05:55:42 +0000
committerru <ru@FreeBSD.org>2008-04-04 05:55:42 +0000
commitd7369e81d19782ec28c47715be611c26a66ddfe9 (patch)
tree0ac008c91f5851d99ff4cb74a3fb04d313d07145 /bin/ls
parent8eda00926b2f908b551b3656a532cdbb9d195090 (diff)
downloadFreeBSD-src-d7369e81d19782ec28c47715be611c26a66ddfe9.zip
FreeBSD-src-d7369e81d19782ec28c47715be611c26a66ddfe9.tar.gz
- Add -D to usage().
- Bump document date for the addition of the -D option. - Reformat a sentence to look like a real sentence.
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/ls.15
-rw-r--r--bin/ls/util.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index ee13204..4eac583 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -32,7 +32,7 @@
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\" $FreeBSD$
.\"
-.Dd October 12, 2006
+.Dd April 4, 2008
.Dt LS 1
.Os
.Sh NAME
@@ -95,8 +95,9 @@ When printing in the long
format, use
.Ar format
to format the date and time output.
+The argument
.Ar format
-is a format string used by
+is a string used by
.Xr strftime 3 .
Depending on the choice of format string, this may result in a
different number of columns in the output.
diff --git a/bin/ls/util.c b/bin/ls/util.c
index 62fa75a..ecb1732 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -222,9 +222,9 @@ usage(void)
{
(void)fprintf(stderr,
#ifdef COLORLS
- "usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1]"
+ "usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [-D format]"
#else
- "usage: ls [-ABCFHILPRSTUWZabcdfghiklmnopqrstuwx1]"
+ "usage: ls [-ABCFHILPRSTUWZabcdfghiklmnopqrstuwx1] [-D format]"
#endif
" [file ...]\n");
exit(1);
OpenPOWER on IntegriCloud