zhitkoff
6186153a08
wc: count_fast optimization using seek
2023-12-07 10:50:55 -05:00
zhitkoff
253926f2e2
wc: unix input redirect
2023-12-07 10:50:55 -05:00
zhitkoff
054ca4a6b5
wc: better handle files in pseudo-filesystems
2023-12-07 10:50:55 -05:00
Sylvestre Ledru
ca024abe31
Merge pull request #5554 from cakebaker/mv_no_target_directory
...
mv: fix issue with -T and destination ending with "/"
2023-12-07 14:13:06 +01:00
Sylvestre Ledru
fe730f8a49
Merge pull request #5611 from sylvestre/dirdb
...
dircolors: Move the static long string into structures.
2023-12-07 09:58:55 +01:00
Daniel Hofstetter
5a32ab8004
ls: implement --hyperlink
2023-12-07 08:14:25 +01:00
Sylvestre Ledru
80b1ccd665
Merge pull request #5609 from cakebaker/ls_ignore_value_of_posixly_correct
...
ls: ignore value of `POSIXLY_CORRECT`
2023-12-06 21:27:21 +01:00
Sylvestre Ledru
f99987bb35
fix rustfmt
2023-12-06 21:19:59 +01:00
Sylvestre Ledru
bd667efa7b
simplify the declaration
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-12-06 21:15:43 +01:00
Sylvestre Ledru
97ec99cf28
use a single push_str
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-12-06 21:14:59 +01:00
Sylvestre Ledru
b0fdb1edef
Rest of the comments
2023-12-04 23:39:10 +01:00
Sylvestre Ledru
dabbcff9fb
dircolors: manage the --print-ls-colors pipe option
2023-12-04 22:41:03 +01:00
Daniel Hofstetter
cf853df2dc
ls: remove "#[allow(unused_variables)]"
2023-12-04 14:48:25 +01:00
Daniel Hofstetter
51fc2d7564
ls: ignore value of POSIXLY_CORRECT
2023-12-03 16:01:19 +01:00
Daniel Hofstetter
c77d389f5b
ls: improve some var names related to block sizes
2023-12-03 14:58:14 +01:00
Daniel Hofstetter
a6d15d67ca
ls: cleanup "spell-checker:ignore" entries
2023-12-03 14:58:14 +01:00
Sylvestre Ledru
1a4ca7e65d
fix clippy warnings
2023-12-02 15:19:37 +01:00
Sylvestre Ledru
e4b8750434
dircolors -p: generate it dynamically
2023-12-02 15:10:00 +01:00
Sylvestre Ledru
5d19f79cd0
dircolors should use the datastructures when printing
2023-12-02 15:04:39 +01:00
Sylvestre Ledru
0e8c171c80
dircolors: move the FILE_ATTRIBUTE_CODES datastructures and use it
2023-12-02 11:03:51 +01:00
Sylvestre Ledru
e24d6b2fbd
Merge pull request #5604 from cakebaker/ls_fix_padding
...
ls: fix padding of size column when using `-l`
2023-12-02 09:40:18 +01:00
Daniel Hofstetter
0ec6802459
ls: fix padding of size column when using -l
2023-11-30 16:19:27 +01:00
clara swanson
9061b2ba7e
libstdbuf: remove crash macro ( #5565 )
...
* libstdbuf: remove crash macro
* libstdbuf: remove uucore macro/struct and use gnu messages
* libstdbuf: remove crash macro
* libstdbuf: remove uucore macro/struct and use gnu messages
* libstdbuf: remove :? from print by printing file descriptor instead of file
* merge main into libstdbuf-remove-crash-macro
* libstdbuf: remove uucore from dependencies
2023-11-30 11:01:31 +01:00
Sylvestre Ledru
3cadeb734d
Merge pull request #5561 from tertsdiepraam/fixup-macros
...
all: reduce imports needed for `show` and `show_if_err` macros
2023-11-29 15:10:59 +01:00
Sylvestre Ledru
203e79d74b
Fix unused import: UError
2023-11-29 14:09:13 +01:00
Daniel Hofstetter
6eec4fe8f9
cut: add test & improve error message
2023-11-29 09:41:11 +01:00
Daniel Hofstetter
2d5ea26410
fmt: rename pfxind_end -> prefix_indent_end
2023-11-28 14:42:28 +01:00
Daniel Hofstetter
32bc2e4bc8
Merge pull request #5592 from tertsdiepraam/fmt-small-refactor
...
`fmt`: a collection of small refactors
2023-11-28 14:15:30 +01:00
Terts Diepraam
2a8f4ec294
fmt: inline parse_arguments function
2023-11-28 12:42:23 +01:00
Terts Diepraam
0b4d4b610c
fmt: put options into module and change static to const
2023-11-28 12:42:23 +01:00
Terts Diepraam
8a49453057
fmt: clean up imports
2023-11-28 12:42:23 +01:00
Terts Diepraam
96ca5e609e
fmt: refactor width and goal calculation
2023-11-28 12:42:23 +01:00
Terts Diepraam
f5206ce783
fmt: merge prefix and use_prefix options (same for anti_prefix)
2023-11-28 12:42:20 +01:00
Terts Diepraam
d78923e4cc
fmt: extract determining options to separate function
2023-11-28 12:37:09 +01:00
Terts Diepraam
01c32a5220
fmt: clean up some small bits
2023-11-28 11:40:33 +01:00
Sylvestre Ledru
b5ce876fef
Merge pull request #5580 from zhitkoff/split-r-chunk
...
split: passing GNU test r-chunk.sh
2023-11-28 10:38:00 +01:00
Sylvestre Ledru
14a8e8a452
Merge pull request #5128 from tertsdiepraam/printf-rewrite
...
`printf` rewrite (with a lot of `seq` changes)
2023-11-28 07:52:58 +01:00
Terts Diepraam
83784b2d96
expr: refactor AST and parsing
2023-11-27 15:18:14 +01:00
Terts Diepraam
8eb66ab7ea
printf: remove whitespace, remove redundant spelling ignore and revert matching on result
2023-11-27 11:53:26 +01:00
Sylvestre Ledru
88d63be3a0
Merge pull request #4545 from jfinkels/dd-reblock
...
dd: buffer partial blocks in the output writer
2023-11-27 09:31:36 +01:00
Daniel Hofstetter
55d931e853
Merge pull request #5582 from zhitkoff/wc-files
...
wc: pass GNU test wc-files0-from.pl
2023-11-27 06:57:43 +01:00
Jeffrey Finkelstein
ceccd2ecc6
dd: buffer partial blocks in the output writer
...
Add buffering of partial blocks in the output block writer until they
are completed.
2023-11-26 18:03:06 -05:00
Jeffrey Finkelstein
f343b7e964
dd: use read statistics for termination condition
...
Correct the behavior of `dd` so that the termination condition of the
main loop uses the number of bytes read, not the number of bytes
written, when the `count` command-line option is given in bytes
instead of blocks.
2023-11-26 18:03:06 -05:00
Jeffrey Finkelstein
b383e60998
dd: implement Add for WriteStat
2023-11-26 18:03:06 -05:00
Jeffrey Finkelstein
5142f35f83
dd: add BufferedOutput to buffer partial blocks
2023-11-26 18:03:06 -05:00
Jeffrey Finkelstein
016ae34d50
dd: add Settings.buffered field
...
Add the `Settings.buffered` field to indicate whether partial output
blocks should be buffered until they are complete.
2023-11-26 18:03:06 -05:00
zhitkoff
16f6a13697
wc: change where to unwrap
2023-11-26 15:14:48 -05:00
Gary Yendell
b6553edfb7
hashsum: Remove usage of crash! macro
2023-11-26 10:38:01 +00:00
zhitkoff
f8f6346126
wc: fix FilesDisabled error message
2023-11-25 18:16:34 -05:00
zhitkoff
7b2a3e236e
split: r-chunk tests and infinite input
2023-11-25 11:12:08 -05:00