1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00
Commit graph

3511 commits

Author SHA1 Message Date
Daniel Hofstetter
03b6371422
Merge pull request #7273 from RenjiSann/tee-fix-p-broken-stdout
tee: fix -p behavior upon broken pipe stdout
2025-02-07 16:19:18 +01:00
Dorian Péron
9a88526867 test(cat): add test for output appending to input file 2025-02-07 07:45:21 -05:00
Jeffrey Finkelstein
c23e1db9c5 Use the last, not first, two digits as the year 2025-02-06 22:02:47 -05:00
Dorian Peron
e550e3d72e test(tee): Add test for broken pipe behavior with -p 2025-02-06 12:25:34 +01:00
Jeffrey Finkelstein
6dfa1f8276 touch: support obsolete POSIX timestamp argument
Support obsolete form of timestamp argument for old POSIX versions. In
summary, when older versions of POSIX are used and the first positional
argument looks like a date and time, then treat it as a timestamp
instead of as a filename. For example, before this commit

    _POSIX2_VERSION=199209
    POSIXLY_CORRECT=1
    touch 01010000 11111111

would create two files, `01010000` and `11111111`. After this commit,
the first argument is interpreted as a date and time (in this case,
midnight on January 1 of the current year) and that date and time are
set on the file named `11111111`.

Fixes #7180.
2025-02-05 22:04:47 -05:00
Daniel Hofstetter
90208096fd uptime: remove duplicate test 2025-02-04 09:24:32 +01:00
karlmcdowall
f94ff78ea4
head: fix bug reading back through files (#7248)
* head: fix bug reading back through files

Fix issue #7247.
Rework logic for reading/seeking backwards through files.
Bug was seen when reading back through large files.
Added test case to validate fix.
2025-02-03 20:13:46 +01:00
Dorian Péron
f2cf08b4e6 test(cksum): fix and un-ignore test_md5_bits 2025-02-03 11:06:47 +01:00
Dorian Péron
b8abebfaf9 test(cksum): un-ignore now passing test test_blake2b_tested_with_sha1 2025-02-03 09:58:52 +01:00
Dorian Péron
2fadd253f7 cksum: fix --binary reset (issue #6375) 2025-02-03 09:58:52 +01:00
Sylvestre Ledru
717a6921fc
Merge pull request #7246 from RenjiSann/printf-negative-asterisk
printf: negative asterisk param changes alignment
2025-02-02 23:13:56 +01:00
Jeffrey Finkelstein
db280b6e9f printf: error on missing hexadecial escape value
Change `printf` to correctly terminate with an error message when an
escape sequence starts with `\x` but doesn't include a literal
hexadecimal value after. For example, before this commit,

    printf '\x'

would output `\x`, but after this commit, it terminates with an error
message,

    printf: missing hexadecimal number in escape

Fixes #7097
2025-02-02 11:07:31 -05:00
sreehari prasad
c2505841e0
Tests: provides easy mount of temp fs (#7249) 2025-02-01 19:01:49 +01:00
Dorian Peron
707e346b84 printf: negative asterisk param changes alignement 2025-01-31 16:50:26 +01:00
Daniel Hofstetter
3891ee1159
Merge pull request #7244 from sylvestre/sleep
Decrease more sleep
2025-01-31 14:52:24 +01:00
Sylvestre Ledru
8c201c1779 tests/cp: Decrease more sleep 2025-01-31 09:56:47 +01:00
Daniel Hofstetter
a9645af366
Merge pull request #7232 from uutils/seep
tests: Decrease the various sleeps
2025-01-31 09:17:24 +01:00
Daniel Hofstetter
14ce43fe52 tail: adapt tests to API change of rand 2025-01-30 08:52:42 +01:00
Daniel Hofstetter
46beccd409 factor: adapt tests to API changes of rand 2025-01-30 08:52:42 +01:00
Daniel Hofstetter
410bb30c64 split: adapt tests to API changes of rand 2025-01-30 08:52:42 +01:00
Daniel Hofstetter
a5fb8f952b sort: adapt to API changes of rand 2025-01-30 08:52:42 +01:00
Dorian Peron
ae6cb8fed3 printf: show warning message in case of excess arguments 2025-01-29 14:01:35 +01:00
Sylvestre Ledru
dbfdff1107
Merge pull request #7233 from cakebaker/remove_rand_pcg
Remove `rand_pcg`
2025-01-28 12:27:54 +01:00
Tommaso Fellegara
1595b6afaa
kill: use only least significant bits to identify signal with -l (#7225)
* kill: check the lower 5 bits when the input is a number

* test/kill: added testcase

* kill: check the last 7 bits

* kill: check only the last 8 bits and the signals in the range [128, 159]

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-01-28 10:21:19 +01:00
Daniel Hofstetter
70d6ac9812 sort: use SmallRng instead of Pcg32 in test 2025-01-28 09:17:06 +01:00
Sylvestre Ledru
f00a8c231b tests: Decrease the various sleeps 2025-01-27 22:08:42 +01:00
Daniel Hofstetter
2668c98d9d kill: don't allow lowercase signal names with '-' 2025-01-24 16:43:50 +01:00
Daniel Hofstetter
10f43ec936
Merge pull request #7129 from sylvestre/chgrp
chgrp: add option --from
2025-01-24 10:08:35 +01:00
Sylvestre Ledru
4f83924092
Merge branch 'main' into sort-mem-percent 2025-01-23 22:52:00 +01:00
danieleades
5d6a04ab71
Fix clippy warning manual_if_else (#7177)
and enable the rule
2025-01-23 22:49:13 +01:00
Sylvestre Ledru
704421bd6b
Merge pull request #7200 from cakebaker/timeout_add_f_and_p
timeout: add support for `-f` and `-p` short options
2025-01-23 22:47:45 +01:00
Sylvestre Ledru
9c42b8efdc chgrp: rename a test for something a bit more explicit 2025-01-23 22:38:38 +01:00
Sylvestre Ledru
d76c561516 chgrp: support the --from=:X syntax 2025-01-23 22:38:38 +01:00
Sylvestre Ledru
c45bbe3d1c chgrp: add option --from 2025-01-23 22:38:38 +01:00
Sylvestre Ledru
5129aba0f0
Merge pull request #7192 from RenjiSann/cksum-fix-error-handling
cksum: Update error and flags handling to improver GNU's match
2025-01-23 22:14:17 +01:00
Dorian Peron
84bbd05092 test(cksum): replicate GNU's cksum-c.sh test 2025-01-23 17:04:00 +01:00
Daniel Hofstetter
55a4285466 timeout: use no_output() to simplify tests 2025-01-23 16:09:06 +01:00
Daniel Hofstetter
df91808649 timeout: add support for -f and -p short options 2025-01-23 16:05:14 +01:00
David Rebbe
f394a20d9a test(sort): options -C and -c should be mutually exclusive but aren't 2025-01-23 10:22:13 +01:00
David Rebbe
e0261c66c8 test(sort): needs support for human-readable block size suffixes R and Q 2025-01-22 23:38:13 -05:00
Sylvestre Ledru
f731f2cba3
Merge pull request #7188 from ic3man5/main
sort: errors on overflowing -k argument but shouldn't
2025-01-22 10:05:51 +01:00
Daniel Hofstetter
af2a26b57f kill: list signal 0 with -l and -t 2025-01-22 08:20:47 +01:00
David Rebbe
3535bfdc72 test(sort): add test for overflowing -k argument 2025-01-21 22:36:43 -05:00
Jeffrey Finkelstein
94c772c082 sort: support percent arguments to -S option
Add support for parsing percent arguments to the `-S` option. The given
percentage specifies a percentage of the total physical memory. For
Linux, the total physical memory is read from `/proc/meminfo`. The
feature is not yet implemented for other systems.

In order to implement the feature, the `uucore::parser::parse_size`
function was updated to recognize strings of the form `NNN%`.

Fixes #3500
2025-01-20 16:24:49 -05:00
Dorian Peron
ed4edb4b8a cksum: Add crc32b algorithm 2025-01-20 12:08:36 +01:00
Daniel Hofstetter
20eb5466c0 mv: show prompt for -u --interactive 2025-01-20 10:47:47 +01:00
Sylvestre Ledru
d66932f593 issues: 7158, 7159 and 7174 - ignore linux arm64 specific test 2025-01-20 08:13:35 +01:00
Sylvestre Ledru
b6f6d93a90
Merge pull request #7155 from cakebaker/numfmt_expand_test
numfmt: extract test from other test & expand it
2025-01-18 22:38:06 +01:00
Daniel Hofstetter
79f4b8976c
Merge pull request #7154 from jfinkels/ls-time-style-timezone-abbrev
ls: display %Z alphabetic time zone abbreviation
2025-01-18 16:54:16 +01:00
Daniel Hofstetter
899aca3880 numfmt: extract test from other test & expand it 2025-01-18 16:19:39 +01:00