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
zhitkoff
440e7b1a59
split: r-chunk test compliance
2023-11-25 11:12:08 -05:00
zhitkoff
dc92a434ef
split: handling system limit on open files
2023-11-25 11:12:08 -05:00
Clint Teece
84b5e6f0a1
du: start printing output immediately ( #5552 )
...
* du: very rough draft of continuously printing output
* du: clean up printing logic, still needs some polishing
* du: gracefully handle case where `du` returns no `Stat`s
* du: print output using separate thread
* du: clean up print thread implementation
* du: send ownership of `Stat`s to printing thread as soon as `du` is done with them
* du: add basic error handling for communication between threads, use `StatPrinter` to handle printing thread logic
* du: move printing grand total into `StatPrinter`, and move initialization of printing-related variables into `StatPrinter::new`
* du: clean up calculation of `convert_size` function, and separate printing a single stat our into its own method in `StatPrinter`
* du: have printing thread handle printing IO-related errors, to ensure error messages and regular output message are written one at a time
* du: add comment explaining print thread, remove outdated comments and clippy allows
* du: restore clippy allows for cognitive complexity
---------
Co-authored-by: clint <cteece3@gatech.edu>
2023-11-25 15:13:12 +01:00
Sylvestre Ledru
64d47730bc
Merge pull request #5555 from cakebaker/cp_adapt_omitting_dir_msg
...
cp: improve error msg if -r is not specified
2023-11-24 21:51:04 +01:00
zhitkoff
4dc46f10e9
split: pass GNU test l-chunk
2023-11-24 10:06:16 +01:00
Coba Weel
7efe33108a
Fix issue 5576 (regex matching bug in expr)
...
Issue 5576 reported a bug in expr, found by the fuzzer. The problem
turns out to be with the regex match operator `:`, which is defined in
POSIX and the GNU manual to match the pattern only when it occurs at
the beginning of the string, i.e., the regex has an implicit `^`
prepended to it. We hadn't been doing that.
2023-11-23 16:26:37 +01:00
Daniel Hofstetter
c2bfb6a465
expr: adapt error messages, revert most of #5559
2023-11-23 15:14:25 +01:00
Daniel Hofstetter
2e77d99dd4
expr: fail fast if there are no operands
2023-11-23 14:35:02 +01:00
Sylvestre Ledru
af021e0d4f
Merge pull request #5559 from pawelngei/expr-substr-error
...
expr: different stderr with `expr "56" "substr"`
2023-11-22 14:56:42 +01:00
Zhuoxun Yang
17d21d2d9c
expr: check prefix operation
2023-11-21 22:05:41 +08:00
ALXD
d2ede92736
expr: make error messages align with GNU expr
2023-11-21 10:14:24 +01:00
Terts Diepraam
5c04283d6e
printf: address fmt, clippy, spelling and failing test
2023-11-21 00:42:02 +01:00
Terts Diepraam
6d2698b802
Merge branch 'main' into printf-rewrite
2023-11-20 13:53:11 +01:00
clara swanson
58087df02a
stdbuf: remove crash macro ( #5549 )
...
* stdbuf: remove crash! macro
* stdbuf: change target_vendor back to apple
* tests/stdbuf: change stderr_only to usage_error in test_stdbuf_invalid_mode_fails
* stdbuf: add exit code to check_option
* stdbuf: remove set_exit_code line from error
2023-11-20 10:16:18 +01:00
Daniel Hofstetter
285e580b6e
cp: improve error msg if -r is not specified
2023-11-20 09:15:15 +01:00
Yury Zhytkou
eb00c195c6
split: pass GNU tests/b-chunk.sh ( #5475 )
...
---------
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Brandon Elam Barker <brandon.barker@gmail.com>
Co-authored-by: Kostiantyn Hryshchuk <statheres@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-17 17:19:10 +01:00
Terts Diepraam
4aafb3f88b
printf: exit correctly on \c
2023-11-17 14:46:00 +01:00
Daniel Hofstetter
a7e5af4770
Merge pull request #5540 from cswn/join-remove-crash-macro
...
join: remove crash! macro
2023-11-17 07:00:55 +01:00
Terts Diepraam
eaf5006379
printf: parse arguments and handle escape codes
2023-11-16 17:00:41 +01:00
Daniel Hofstetter
2f9fcf73fa
clippy: fix warnings introduced by Rust 1.74
2023-11-16 16:21:28 +01:00
Terts Diepraam
e7d58f673f
seq: simplify and use new printf implementation
2023-11-16 14:29:49 +01:00
cswn
65dc70b553
join: remove match in uumain and return exec result
2023-11-16 12:02:39 +01:00
cswn
a064c88656
join: replace match with JoinError with map_err_context
2023-11-16 09:35:32 +01:00
cswn
5dff5f2f73
join: rename f variable to file_buf
2023-11-15 13:52:01 +01:00
cswn
94f6702ba5
join: remove crash! macro
2023-11-15 13:20:22 +01:00
Daniel Hofstetter
0db834e04c
Merge pull request #5533 from cswn/split-remove-crash-macro
...
split: remove crash macro
2023-11-15 10:14:43 +01:00
Sylvestre Ledru
3f86bc59de
add missing features to uucore
2023-11-15 08:31:53 +01:00
cswn
c4580df2a4
split: remove crash macro
2023-11-14 18:07:35 +01:00
Sylvestre Ledru
ff92bfb25b
Prepare version 0.0.23
2023-11-13 22:02:01 +01:00
Terts Diepraam
6481d63ea4
uucore/format: implement single specifier formats
2023-11-13 15:22:49 +01:00
Terts Diepraam
0a07d47243
Merge pull request #5493 from cakebaker/du_inodes_with_count_links
...
du: make -l/--count-links work
2023-11-13 13:12:35 +01:00
Daniel Hofstetter
7202d01767
Merge pull request #5510 from ceteece/expand-remove-crash-macro
...
expand: remove crash! macro
2023-11-10 14:42:23 +01:00
clint
a29ddea4e9
expand: clarify tabstops argument name for expand_line
2023-11-09 15:58:12 -05:00
Daniel Hofstetter
85777e6a42
du: rename inodes -> seen_inodes
2023-11-09 16:11:56 +01:00
Daniel Hofstetter
12e61d451c
du: make -l/--count-links work
2023-11-09 16:07:02 +01:00