Commit graph

6301 commits

Author SHA1 Message Date
kimono-koans
421330d07a
ls: Improve error handling and other improvements (#2809)
*  print error in the correct order by flushing the stdout buffer before printing an error
*  print correct GNU error codes
*  correct formatting for config.inode, and for dangling links
*  correct padding for Format::Long
*  remove colors after the -> link symbol as this doesn't match GNU
*  correct the major, minor #s for char devices, and correct padding
*  improve speed for all metadata intensive ops by not allocating metadata unless in a Sort mode
*  new tests, have struggled with how to deal with stderr, stdout ordering in a test though
*  tried to implement UIoError, but am still having issues matching the formatting of GNU


Co-authored-by: electricboogie <32370782+electricboogie@users.noreply.github.com>
2022-01-05 14:50:37 +01:00
Sylvestre Ledru
ae7190ec73
Merge pull request #2846 from jfinkels/wc-uresult
wc: return UResult from uumain() function
2022-01-05 14:39:39 +01:00
Sylvestre Ledru
8ef2ea1356
Merge pull request #2830 from jfinkels/tee-uresult
tee: return UResult from uumain() function
2022-01-05 13:51:05 +01:00
Sylvestre Ledru
b36759765d
Merge pull request #2849 from jfinkels/chcon-uresult
chcon: return UResult from uumain() function
2022-01-05 13:50:02 +01:00
Jeffrey Finkelstein
b30a20d895 chcon: return UResult from uumain() function 2022-01-02 20:08:11 -05:00
Jeffrey Finkelstein
9caf15c44f fixup! wc: return UResult from uumain() function 2022-01-02 19:40:22 -05:00
Sylvestre Ledru
cd1a0fbe36
Merge pull request #2841 from sbentmar/add-suffix-to-numfmt
numfmt: implement missing --suffix option
2022-01-02 23:07:29 +01:00
Sylvestre Ledru
3c68988ae7
Merge pull request #2843 from tertsdiepraam/stdbuf/fix-cargo-git-build
stdbuf: fix cargo --git build (#1276) (Attempt 2)
2022-01-02 23:06:59 +01:00
Sylvestre Ledru
e7dd56c1d5
Merge pull request #2845 from jfinkels/unexpand-uresult
unexpand: return UResult from uumain() function
2022-01-02 19:02:30 +01:00
Sylvestre Ledru
d5312e963f
Merge pull request #2844 from jfinkels/tty-uresult
tty: return UResult from uumain() function
2022-01-02 19:02:12 +01:00
Jeffrey Finkelstein
e060ac53f2 wc: return UResult from uumain() function 2022-01-02 11:15:30 -05:00
Jeffrey Finkelstein
f89dc6585d unexpand: return UResult from uumain() function 2022-01-02 10:33:41 -05:00
Jeffrey Finkelstein
b7e646e710 tty: return UResult from uumain() function 2022-01-02 10:28:53 -05:00
Terts Diepraam
ebd5e965e9 stdbuf: fix cargo --git build (#1276) 2022-01-02 14:17:05 +01:00
Sylvestre Ledru
0f2d8c597d
Merge pull request #2842 from rivy/fix.codecov
maint/CICD ~ ignore 'vendor' for CodeCov
2022-01-02 09:54:47 +01:00
Sebastian Holgersson
a3895bba59 numfmt: replace if let with simpler match 2022-01-02 02:16:59 +01:00
Roy Ivy III
cd79bc49bc maint/CICD ~ ignore 'vendor' for CodeCov 2022-01-01 17:50:30 -06:00
Sebastian Holgersson
84798a520e numfmt: fix spelling and formatting issues in tests 2022-01-01 22:55:50 +01:00
Sylvestre Ledru
406cd887e0
Merge pull request #2828 from jfinkels/sum-uresult
sum: return UResult from uumain() function
2022-01-01 22:37:01 +01:00
Sylvestre Ledru
8673fbaa03
Merge pull request #2829 from jfinkels/sync-uresult
sync: return UResult from uumain() function
2022-01-01 22:36:11 +01:00
Sylvestre Ledru
46767952ce
Merge pull request #2831 from jfinkels/test-uresult
test: return UResult from uumain() function
2022-01-01 22:35:51 +01:00
Sylvestre Ledru
8a16acefeb
Merge pull request #2839 from tertsdiepraam/remove-unused-macros
Remove unused macros & coreopts
2022-01-01 22:35:28 +01:00
Sebastian Holgersson
af5919e466 numfmt: implement missing --suffix option
adds support for the --suffix option from issue #1280.
2022-01-01 21:57:23 +01:00
Terts Diepraam
7fa720d311 fix lint, fmt & udeps errors 2022-01-01 19:43:44 +01:00
Terts Diepraam
62341112df remove cut-specific macros 2022-01-01 18:50:34 +01:00
Terts Diepraam
c075f105a4 remove unnecessary and unused macros 2022-01-01 18:31:47 +01:00
Jeffrey Finkelstein
d03dcc0231 test: return UResult from uumain() function 2021-12-31 18:25:26 -05:00
Jeffrey Finkelstein
1ead016f35 fixup! sync: return UResult from uumain() function 2021-12-31 14:28:27 -05:00
Jeffrey Finkelstein
28958a3ed2 tee: return UResult from uumain() function 2021-12-31 14:07:39 -05:00
Jeffrey Finkelstein
4e16717c22 sync: return UResult from uumain() function 2021-12-31 13:59:20 -05:00
Jeffrey Finkelstein
29d7103670 sum: return UResult from uumain() function 2021-12-31 13:53:56 -05:00
Sylvestre Ledru
cb051e7416
Merge pull request #2825 from jfinkels/stat-uresult
stat: return UResult from uumain() function
2021-12-31 11:06:02 +01:00
Sylvestre Ledru
e3ba10cf1f
Merge pull request #2824 from jfinkels/split-strategy-enum
split: replace string checking with Strategy enum
2021-12-31 10:44:49 +01:00
Sylvestre Ledru
3e97de6946
Merge pull request #2820 from jfinkels/rm-uresult
rm: return UResult from uumain() function
2021-12-31 10:43:47 +01:00
Sylvestre Ledru
a99ce6f3f0
Merge pull request #2819 from jfinkels/relpath-uresult
relpath: return UResult from uumain() function
2021-12-31 10:43:21 +01:00
Sylvestre Ledru
60f501bab3
Merge pull request #2818 from jfinkels/readlink-uresult
readlink: return UResult from uumain() function
2021-12-31 10:43:09 +01:00
Sylvestre Ledru
e08f94ca28
Merge pull request #2817 from jfinkels/ptx-uresult
ptx: return UResult from uumain() function
2021-12-31 10:42:45 +01:00
Jeffrey Finkelstein
a862fdd60b stat: return UResult from uumain() function 2021-12-30 22:39:23 -05:00
Jeffrey Finkelstein
8f04613a84 split: create Strategy enum for chunking strategy 2021-12-30 22:18:17 -05:00
Jeffrey Finkelstein
25d0ccc61d split: move parsing outside of *Splitter::new()
Move the parsing of the output chunk size from inside
`ByteSplitter::new()` and `LineSplitter::new()` to outside. This
eliminates duplicate code and reduces the responsibilities of the
`ByteSplitter` and `LineSplitter` implementations.
2021-12-30 22:17:26 -05:00
Jeffrey Finkelstein
75e742a008 split: correct help text for -l option 2021-12-30 22:17:20 -05:00
Sylvestre Ledru
9f21cd0d37
Merge pull request #2822 from jfinkels/shred-uresult
shred: return UResult from uumain() function
2021-12-30 09:51:51 +01:00
Jeffrey Finkelstein
e9093681a5 shred: return UResult from uumain() function 2021-12-29 20:33:04 -05:00
Sylvestre Ledru
a8457bfad6
Merge pull request #2798 from jfinkels/fmt-uresult
fmt: return UResult from uumain() function
2021-12-29 21:59:50 +01:00
Jeffrey Finkelstein
f6305e2a3e rm: return UResult from uumain() function 2021-12-29 15:57:55 -05:00
Jeffrey Finkelstein
ab495427b4 relpath: return UResult from uumain() function 2021-12-29 15:49:30 -05:00
Jeffrey Finkelstein
980708cdee readlink: return UResult from uumain() function 2021-12-29 14:44:22 -05:00
Jeffrey Finkelstein
2a7831bd94 readlink: eliminate duplicate code 2021-12-29 14:42:00 -05:00
Jeffrey Finkelstein
da198e5469 ptx: return UResult from uumain() function 2021-12-29 14:28:45 -05:00
Terts Diepraam
4ae838a8b2
Merge pull request #2786 from E3uka/cut_uresult
cut: use UResult
2021-12-29 15:24:05 +01:00