From b697bac049dd10db486dea9148ce4b2251147cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Sat, 2 Dec 2017 16:56:50 -0800 Subject: [PATCH] doc: reorganize ls -k and --time-style help * src/ls.c (usage): Clarify -k only applies to -s usage and directory 'total' lines. Move the description of TIME_STYLE out of the option section as it was awkward to read and write there within 80 columns. --- src/ls.c | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/src/ls.c b/src/ls.c index 073e135..4becd06 100644 --- a/src/ls.c +++ b/src/ls.c @@ -5140,9 +5140,10 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\ -b, --escape print C-style escapes for nongraphic characters\n\ "), stdout); fputs (_("\ - --block-size=SIZE scale sizes by SIZE before printing them; e.g.,\n\ - '--block-size=M' prints sizes in units of\n\ - 1,048,576 bytes; see SIZE format below\n\ + --block-size=SIZE with -l, scale sizes by SIZE when printing them;\n\ + e.g., '--block-size=M'; see SIZE format below\n\ +"), stdout); + fputs (_("\ -B, --ignore-backups do not list implied entries ending with ~\n\ -c with -lt: sort by, and show, ctime (time of last\n\ modification of file status information);\n\ @@ -5177,8 +5178,9 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\ "), stdout); fputs (_("\ -G, --no-group in a long listing, don't print group names\n\ - -h, --human-readable with -l and/or -s, print human readable sizes\n\ - (e.g., 1K 234M 2G)\n\ +"), stdout); + fputs (_("\ + -h, --human-readable with -l and -s, print sizes like 1K 234M 2G etc.\n\ --si likewise, but use powers of 1000 not 1024\n\ "), stdout); fputs (_("\ @@ -5203,7 +5205,10 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\ -i, --inode print the index number of each file\n\ -I, --ignore=PATTERN do not list implied entries matching shell PATTERN\ \n\ - -k, --kibibytes default to 1024-byte blocks for disk usage\n\ +"), stdout); + fputs (_("\ + -k, --kibibytes default to 1024-byte blocks for disk usage;\n\ + used only with -s and per directory totals\n\ "), stdout); fputs (_("\ -l use a long listing format\n\ @@ -5248,16 +5253,7 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\ as sort key if --sort=time (newest first)\n\ "), stdout); fputs (_("\ - --time-style=STYLE with -l, show times using style STYLE:\n\ - full-iso, long-iso, iso, locale, or +FORMAT;\n\ - FORMAT is interpreted like in 'date'; if FORMAT\ -\n\ - is FORMAT1