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
Jeffrey Finkelstein
ab6d95cdb9
ls: display %Z alphabetic time zone abbreviation
...
Display the alphabetic timezone abbreviation (like "UTC" or "CET") when
the `--time-style` argument includes a `%Z` directive. This matches the
behavior of `date`.
Fixes #7035
2025-01-18 09:33:52 -05:00
Daniel Hofstetter
64dad0c3ab
Merge pull request #7144 from sylvestre/comm2
...
comm: implement the ordering check
2025-01-18 14:53:33 +01:00
Sylvestre Ledru
b50a012d13
comm: implement the ordering check
...
A few comments:
* skip if the two args are pointing to the same file
* skip if the same content in the two files
* implement --check-order
* implement --nocheck-order
* output the right things on stderr
Should pass: tests/misc/comm
2025-01-18 09:22:41 +01:00
Daniel Hofstetter
7edd045206
date: use UTC if TZ is empty
2025-01-16 11:44:45 +01:00
Alexander Shirokov
b3c0633b95
seq:add bounds for exponents
...
Add bounds for exponents to avoid overflow issues for inputs like 'seq
1e-9223372036854775808'
2025-01-15 22:35:24 +01:00
Daniel Hofstetter
dca0ec0e65
Merge pull request #7140 from sylvestre/comm-test
...
comm: don't use files for test
2025-01-15 16:40:24 +01:00
Sylvestre Ledru
4e45ca673c
comm: don't use files for test
2025-01-15 16:13:51 +01:00
Alexander
05ada0d204
seq:add floating point support ( #6959 )
...
* seq:enable parsing of hexadecimal floats
Turn on the float parser. Now it's possible to use hexadecimal floats as
parameters. For example,
cargo run -- 0x1p-1 3
0.5
1.5
2.5
Issue #6935
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-01-15 11:53:18 +01:00
Daniel Hofstetter
c322fb5c73
Merge pull request #7134 from jfinkels/date-timezone-name
...
date: display %Z alphabetic time zone abbreviation
2025-01-15 11:07:46 +01:00
Krishna Nagam
d82d038b54
date: display %Z alphabetic time zone abbreviation
...
Improve the display of dates formatted with the `%Z` specifier so that
the timezone abbreviation is displayed, not just its numeric offset.
Fixes #3756
Co-authored-by: Jeffrey Finkelstein <jeffrey.finkelstein@protonmail.com>
2025-01-14 17:49:11 -05:00
Sylvestre Ledru
106873171d
dircolors: ignore spell issues
2025-01-14 23:25:32 +01:00
Sylvestre Ledru
1db2e2356a
dircolors: fix empty COLORTERM matching with ?* pattern
...
should fix tests/misc/dircolors
2025-01-14 23:25:32 +01:00
Daniel Hofstetter
de18b76555
numfmt: use succeeds/fails instead of run in tests
2025-01-14 16:29:46 +01:00
Sylvestre Ledru
74d80eab0a
Merge pull request #7061 from DaringCuteSeal/cp-stream-2
...
cp: implement copying from streams
2025-01-13 14:13:13 +01:00
Sylvestre Ledru
40511f6da0
Merge pull request #7122 from jfinkels/dd-error-iflag-directory
...
dd: error if iflag=directory and input is stdin
2025-01-13 14:11:32 +01:00
Jeffrey Finkelstein
071e72ffc8
split: fix bug with large arguments to -C
...
Fix the behavior of `split -C` when given large arguments. Before this
commit, bytes were being greedily assigned to a chunk too aggressively,
leading to a situation where a split happened in the middle of a line
even though the entire line could have fit within the next chunk. This
was appearing for large arguments to `-C` and long lines that extended
beyond the size of the read buffer. This commit fixes the behavior.
Fixes #7026
2025-01-13 09:36:48 +01:00
Jeffrey Finkelstein
d9b3b3ef67
dd: error if iflag=directory and input is stdin
...
Make `dd` error if `iflag=directory` and the input file is not a
directory, as in
: | dd iflag=directory
Fixes #5900
2025-01-13 09:36:36 +01:00
Sylvestre Ledru
35b896f5e1
Merge pull request #7093 from jfinkels/tsort-print-cycle
...
tsort: print nodes and cycles as they are visited
2025-01-13 08:52:38 +01:00
Sylvestre Ledru
988cc4eae3
Merge pull request #7115 from jfinkels/stat-format-mtime-precision
...
stat: fix precision when rendering mtime (%Y)
2025-01-12 17:07:31 +01:00
Anirban Halder
924d40867c
chroot: make group option self overwriting
2025-01-12 01:08:38 +05:30
Jeffrey Finkelstein
f59c7899c3
Add more test cases and improve precision
2025-01-11 11:27:18 -05:00
Sylvestre Ledru
6457836f33
chmod: Remove misleading comments
2025-01-11 16:07:07 +01:00
Sylvestre Ledru
78b09f400b
chmod: merge some tests into one
2025-01-11 12:48:30 +01:00
Sylvestre Ledru
b0126fdc68
chmod: Implement --dereference, -L, -H, etc
...
Should fix tests/chmod/symlinks.sh
2025-01-11 12:48:30 +01:00