diff options
author | Ron Yorston <rmy@pobox.com> | 2016-04-04 16:22:54 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-04-04 16:22:54 +0100 |
commit | 253dbd612b2d2f041f4263e15a3b94df70f41e36 (patch) | |
tree | f6c6e12a0541233058a7f7ccb1251afeb457da06 /coreutils | |
parent | 3cf56a021d7a62512b477640e930e1a78288075c (diff) | |
parent | d7d4750e1e213e7448147186dddfe3bfbb47eea0 (diff) | |
download | busybox-w32-253dbd612b2d2f041f4263e15a3b94df70f41e36.tar.gz busybox-w32-253dbd612b2d2f041f4263e15a3b94df70f41e36.tar.bz2 busybox-w32-253dbd612b2d2f041f4263e15a3b94df70f41e36.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/ls.c | 6 | ||||
-rw-r--r-- | coreutils/sort.c | 15 |
2 files changed, 12 insertions, 9 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index c48498858..20bd61860 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -668,7 +668,7 @@ static void display_files(struct dnode **dn, unsigned nfiles) | |||
668 | if (column_width < len) | 668 | if (column_width < len) |
669 | column_width = len; | 669 | column_width = len; |
670 | } | 670 | } |
671 | column_width += 1 + | 671 | column_width += 2 + |
672 | IF_SELINUX( ((G.all_fmt & LIST_CONTEXT) ? 33 : 0) + ) | 672 | IF_SELINUX( ((G.all_fmt & LIST_CONTEXT) ? 33 : 0) + ) |
673 | ((G.all_fmt & LIST_INO) ? 8 : 0) + | 673 | ((G.all_fmt & LIST_INO) ? 8 : 0) + |
674 | ((G.all_fmt & LIST_BLOCKS) ? 5 : 0); | 674 | ((G.all_fmt & LIST_BLOCKS) ? 5 : 0); |
@@ -696,8 +696,8 @@ static void display_files(struct dnode **dn, unsigned nfiles) | |||
696 | if (i < nfiles) { | 696 | if (i < nfiles) { |
697 | if (column > 0) { | 697 | if (column > 0) { |
698 | nexttab -= column; | 698 | nexttab -= column; |
699 | printf("%*s ", nexttab, ""); | 699 | printf("%*s", nexttab, ""); |
700 | column += nexttab + 1; | 700 | column += nexttab; |
701 | } | 701 | } |
702 | nexttab = column + column_width; | 702 | nexttab = column + column_width; |
703 | column += display_single(dn[i]); | 703 | column += display_single(dn[i]); |
diff --git a/coreutils/sort.c b/coreutils/sort.c index 07d903388..9139d9f47 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -14,23 +14,23 @@ | |||
14 | 14 | ||
15 | //usage:#define sort_trivial_usage | 15 | //usage:#define sort_trivial_usage |
16 | //usage: "[-nru" | 16 | //usage: "[-nru" |
17 | //usage: IF_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") | 17 | //usage: IF_FEATURE_SORT_BIG("gMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") |
18 | //usage: "] [FILE]..." | 18 | //usage: "] [FILE]..." |
19 | //usage:#define sort_full_usage "\n\n" | 19 | //usage:#define sort_full_usage "\n\n" |
20 | //usage: "Sort lines of text\n" | 20 | //usage: "Sort lines of text\n" |
21 | //usage: IF_FEATURE_SORT_BIG( | 21 | //usage: IF_FEATURE_SORT_BIG( |
22 | //usage: "\n -b Ignore leading blanks" | 22 | //usage: "\n -o FILE Output to FILE" |
23 | //usage: "\n -c Check whether input is sorted" | 23 | //usage: "\n -c Check whether input is sorted" |
24 | //usage: "\n -d Dictionary order (blank or alphanumeric only)" | 24 | //usage: "\n -b Ignore leading blanks" |
25 | //usage: "\n -f Ignore case" | 25 | //usage: "\n -f Ignore case" |
26 | //usage: "\n -g General numerical sort" | ||
27 | //usage: "\n -i Ignore unprintable characters" | 26 | //usage: "\n -i Ignore unprintable characters" |
27 | //usage: "\n -d Dictionary order (blank or alphanumeric only)" | ||
28 | //usage: "\n -g General numerical sort" | ||
28 | //usage: "\n -M Sort month" | 29 | //usage: "\n -M Sort month" |
29 | //usage: ) | 30 | //usage: ) |
30 | //-h, --human-numeric-sort: compare human readable numbers (e.g., 2K 1G) | 31 | //-h, --human-numeric-sort: compare human readable numbers (e.g., 2K 1G) |
31 | //usage: "\n -n Sort numbers" | 32 | //usage: "\n -n Sort numbers" |
32 | //usage: IF_FEATURE_SORT_BIG( | 33 | //usage: IF_FEATURE_SORT_BIG( |
33 | //usage: "\n -o Output to file" | ||
34 | //usage: "\n -t CHAR Field separator" | 34 | //usage: "\n -t CHAR Field separator" |
35 | //usage: "\n -k N[,M] Sort by Nth field" | 35 | //usage: "\n -k N[,M] Sort by Nth field" |
36 | //usage: ) | 36 | //usage: ) |
@@ -41,7 +41,10 @@ | |||
41 | //usage: "\n -u Suppress duplicate lines" | 41 | //usage: "\n -u Suppress duplicate lines" |
42 | //usage: IF_FEATURE_SORT_BIG( | 42 | //usage: IF_FEATURE_SORT_BIG( |
43 | //usage: "\n -z Lines are terminated by NUL, not newline" | 43 | //usage: "\n -z Lines are terminated by NUL, not newline" |
44 | //usage: "\n -mST Ignored for GNU compatibility") | 44 | ////usage: "\n -m Ignored for GNU compatibility" |
45 | ////usage: "\n -S BUFSZ Ignored for GNU compatibility" | ||
46 | ////usage: "\n -T TMPDIR Ignored for GNU compatibility" | ||
47 | //usage: ) | ||
45 | //usage: | 48 | //usage: |
46 | //usage:#define sort_example_usage | 49 | //usage:#define sort_example_usage |
47 | //usage: "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" | 50 | //usage: "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" |