1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00
Commit graph

3499 commits

Author SHA1 Message Date
Sylvestre Ledru
a4230410c8
Merge pull request #7821 from cakebaker/mknod_remove_windows_code_flags
mknod: remove windows-related code & flags
2025-04-22 17:32:10 +02:00
Daniel Hofstetter
9e7f3acbc7 mknod: remove windows-related code & flags 2025-04-22 16:57:26 +02:00
Sylvestre Ledru
1986c965cc
Merge pull request #7782 from drinkcat/seq-perf-more-use-cat
Move seq's `fast_inc` to `uucore`, use it in `cat`
2025-04-22 15:54:00 +02:00
Sylvestre Ledru
77c4ba5bea
Merge pull request #7241 from jfinkels/mv-copy-across-filesystems
mv: fix moving FIFO to a different filesystem
2025-04-21 23:03:26 +02:00
Sylvestre Ledru
aacd6d4779
Merge pull request #7816 from drinkcat/test_ls_more_acl
test_ls: Improve acl test
2025-04-21 22:45:44 +02:00
Nicolas Boichat
adb23b154f test_ls: Improve acl test
Create a file with some ACL, and another without, and check that `+`
only appears on the file with ACL.
2025-04-21 17:19:06 +02:00
Daniel Hofstetter
9a04845c01
Merge pull request #7811 from drinkcat/test-ls-improve-perm-io-errors
test_ls: Improve test_ls_perm_io_errors
2025-04-21 14:09:47 +02:00
Nicolas Boichat
560d1eb1b7 seq: Add a print_seq fast path function for integer and positive increments
A lot of custom logic, we basically do arithmetic on character
arrays, but this comes at with huge performance gains.

Unlike coreutils `seq`, we do this for all positive increments
(because why not), and we do not fall back to slow path if
the last parameter is in scientific notation.

Also, add some tests for empty separator, as that may catch
some corner cases.
2025-04-21 11:25:54 +02:00
Nicolas Boichat
a3e837ea99 test_ls: Improve test_ls_perm_io_errors
Do more extensive test of the output to check long output for
metadata failure, without relying on GnuTests
2025-04-21 11:12:26 +02:00
Ben Wiederhake
d7d0f9da7a
shred: correctly print zero-byte pass in verbose mode (#7800)
Fixes #7798.

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-04-21 11:06:06 +02:00
Daniel Hofstetter
06bae0d797
Merge pull request #7799 from BenWiederhake/dev-shred-verbose-no-padding
shred: remove unwanted padding in verbose messages
2025-04-21 09:33:44 +02:00
Zhang Wen
b009cae5a8
install: improve error message (#7794)
* friendly message install file to directory containing directory with same name

* install: test install file to directory containing directory with same name
2025-04-20 18:45:15 +02:00
Ben Wiederhake
af7a939b62 shred: remove unwanted padding in verbose messages
This is tested for in the GNU shred-passes test, so we don't have a
choice if we want to stay compatible.
2025-04-20 18:28:23 +02:00
Daniel Hofstetter
f92ee6a519
Merge pull request #7792 from karlmcdowall/tail_fix_v_option
tail: fix issue with -v flag and stdin
2025-04-20 17:00:37 +02:00
Karl McDowall
e35ef16030 tail: fix issue with -v flag and stdin
Fixes issue #7613
Tail now correctly handles the -v flag when only 1 input file is given.
2025-04-19 09:49:06 -06:00
Jeffrey Finkelstein
2717f9c8b5 mv: fix moving FIFO to a different filesystem
Fix a bug in `mv` where it would hang indefinitely while trying to copy
a FIFO across filesystems. The solution is to remove the old FIFO and
create a new one on the new filesystem.

Fixes #7076
2025-04-19 11:12:53 -04:00
Daniel Hofstetter
1d89ea5b6d
Merge pull request #7781 from dan-hipschman/env-ignore-flags-after-command
env: ignore flags after the command or -- argument
2025-04-19 14:50:21 +02:00
Sylvestre Ledru
e7f33f533b
Merge pull request #7776 from karlmcdowall/od_7666
od: fix for issue #7666
2025-04-19 12:03:00 +02:00
Karl McDowall
b692fad45d od: Ensure stdin is left in the correct state
Fixes issue #7666
For `od` utility, if client specifies `-N` maximum bytes to be read
then ensure stdin is left pointing to the next byte when `od` exits.
To do this...
 - Bypass standard buffering on stdin.
 - Instantiate BufReader further up the stack to maintain performance.
2025-04-18 21:14:29 -06:00
Dan Hipschman
814e82ea4e env: ignore flags after the command or -- argument 2025-04-18 18:48:37 -07:00
Ben Wiederhake
d6e78d738d du: test existing correct behavior: warn about --inodes -b conflict 2025-04-18 16:21:24 +02:00
Daniel Hofstetter
3210638168 ls,stat: fix single_char_pattern in tests 2025-04-18 13:52:47 +02:00
Sylvestre Ledru
38ef20c385
Merge pull request #7777 from Qelxiros/7678-parsing-tests
add tests against '0 in sleep/timeout durations
2025-04-18 10:02:40 +02:00
Daniel Hofstetter
6ea58ea0aa
Merge pull request #7768 from sylvestre/ls-selinux
ls: add selinux support
2025-04-18 09:07:10 +02:00
Sylvestre Ledru
af577e7a14
printf: support for extract chars
Should fix tests/printf/printf-mb.sh
2025-04-18 00:39:13 -04:00
Sylvestre Ledru
e5980d4d2a
printf: simplify and dedup some tests 2025-04-18 00:38:57 -04:00
Sylvestre Ledru
8ff0db1db9
printf: Improve support for printing multi-byte values of characters 2025-04-18 00:38:48 -04:00
Jeremy Smart
5bcc56add5
sleep: add tests 2025-04-17 21:42:38 -04:00
Jeremy Smart
8cfffecd5f
timeout: add tests 2025-04-17 21:32:58 -04:00
Terts Diepraam
d99b7b31a6
Merge pull request #7740 from Ecordonnier/eco/enable-utmpx-for-musl
enable utmpx feature for musl
2025-04-17 22:46:23 +02:00
Sergei Patiakin
4190fe22ef
fix: df: filter filesystem types after mount point resolution (#7452)
Closes: #6194
2025-04-17 22:06:20 +02:00
Sylvestre Ledru
cb419b4f77 ls: use the uucore functions 2025-04-17 18:27:56 +02:00
Sylvestre Ledru
4651a58b82 ls: add selinux support 2025-04-17 18:27:54 +02:00
Sylvestre Ledru
785ae3c954
Merge pull request #7767 from cakebaker/bump_bincode
Bump `bincode` & adapt test code to API changes
2025-04-17 17:58:39 +02:00
Leo Emar-Kar
538355fb67
ls: add -T support and fix --classify output (#7616)
* add -T option parsing

* add usage of tab_size in display_grid

* fix test_ls_columns with \t

since this behavior is on by default

* update test_tabsize_formatting

* use grid DEFAULT_SEPARATOR_SIZE

* update Tabs

* fix test with column width

* fix cspell

* fix linter warning on match bool

* add comment for 0 tab_size

* update tabsize test with -C

* update one of the tabs tests to use -x

* remove comment and split tests for both x/C args
2025-04-17 14:29:22 +02:00
Dorian Péron
349e56897c
Merge pull request #7694 from drinkcat/printf-fix-empty
uucore: parser: num_parser: Return error if no digit has been parsed
uucore: parser: num_parser: Ignore empty exponents
uucore: parser: num_parser: Parse "0x"/"0b" as PartialMatch
2025-04-16 23:32:39 +02:00
Daniel Hofstetter
219e87d57c
Merge pull request #7752 from sylvestre/stat-C
stat: add support for selinux
2025-04-16 11:06:36 +02:00
Daniel Hofstetter
8590f51f85 uptime: adapt test to API changes in bincode 2025-04-16 11:02:52 +02:00
Sylvestre Ledru
c7d39dded6 stat: add support for selinux 2025-04-16 10:21:37 +02:00
Nicolas Boichat
fce9f79618 tests: printf: Add more cases around 0, missing digits, etc. 2025-04-15 20:59:35 +02:00
Sylvestre Ledru
a37c4a6dc6
Merge pull request #7756 from uutils/sylvestre-patch-5
tail: Ignore a few tests on selinux
2025-04-15 15:21:50 +02:00
Etienne Cordonnier
0354f1f84d disable failing uptime test for musl
musl libc only provides stub functions for utmpx, thus this test cannot pass with musl libc.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-04-15 12:51:55 +02:00
Dorian Péron
3dcee17572
Merge pull request #7675 from Qelxiros/7669-sleep-hex-parsing
fix(sleep): use uucore's from_str to support parsing hex
2025-04-15 00:50:15 +02:00
Jeremy Smart
7f2fb0483a
update tests 2025-04-14 07:34:41 -04:00
Dan Hipschman
d37f500bd3 cp: cp -P hardlink-to-symlink hardlink-to-same-symlink should noop 2025-04-14 13:06:53 +02:00
Sylvestre Ledru
a289e9f0fb
fix declaration 2025-04-14 10:29:11 +02:00
Sylvestre Ledru
bbbc7b5147
Remove extra space 2025-04-14 10:25:30 +02:00
Sylvestre Ledru
7d86f0b5f2
tail: test_follow_name_truncate4 is also flaky on selinux 2025-04-14 10:04:14 +02:00
Sylvestre Ledru
554c0ad593
tail: Ignore a test on selinux
test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size is flaky
2025-04-14 09:46:05 +02:00
Himadri Bhattacharjee
131ee87781
Merge pull request #7755 from lavafroth/date-test-abs-diff
refactor(tests): use absolute difference of dates to check if they are within a window
2025-04-14 09:43:14 +02:00