From 5ffbd51eb073fd4c617d07865f5a816416a14900 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 4 Apr 2008 05:55:42 +0000 Subject: [PATCH] - Add -D to usage(). - Bump document date for the addition of the -D option. - Reformat a sentence to look like a real sentence. --- bin/ls/ls.1 | 5 +++-- bin/ls/util.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index ee1320409c62..4eac583a015b 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 62fa75adf807..ecb1732b851e 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);