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
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
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
Dorian Péron
c35d26dc51
Merge pull request #7693 from sargas/escape_empty_string
...
uucore/quoting_style: Add support for quoting/escaping empty strings
2025-04-13 23:05:28 +02:00
Sylvestre Ledru
4c796caba5
Merge pull request #7721 from Qelxiros/7166-head-maxint
...
head: fix overflow errors
2025-04-13 16:37:13 +02:00
Daniel Hofstetter
80b6a2155c
Merge pull request #7635 from sylvestre/temp-selinux-impl
...
mkdir: add the selinux support
2025-04-13 14:49:52 +02:00
Joseph Jon Booker
9f1e7a2075
printf: Add integration test for %q ''
2025-04-12 21:44:06 -05:00
Ben Wiederhake
11cd0b1bbf
replace Error::new(ErrorKind::Other, _) as suggested by clippy
...
See also:
https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
2025-04-13 04:35:38 +02:00
Jeremy Smart
cc1112660a
head: return to parse::<usize> and switch to parse_size_u64_max
2025-04-12 23:38:32 +02:00
Ben Wiederhake
a82dce0bd7
du: don't panic on block-size 0
2025-04-12 22:51:09 +02:00
Joseph Jon Booker
7df22051ea
printf: Ignore thousand seperator flag
2025-04-11 23:17:50 -05:00
Joseph Jon Booker
ef7a8c300e
printf: add error handling to escaped unicode characters
2025-04-11 23:17:50 -05:00
Sylvestre Ledru
81c02b7408
mkdir: add support of -Z
...
Should fix: gnu/tests/mkdir/selinux.sh
tests/mkdir/restorecon.sh
2025-04-10 18:26:41 -04:00
Yuri Astrakhan
895b208391
Consolidate crate config in workspace
...
Make all common data like version, edition, license, ... be managed in one central workspace. This makes management much simpler
2025-04-10 16:52:01 -04:00
hz2
cd2b56ea9c
cp: fix update prompting ( #7668 )
...
* added logic to check if we are updating the file and the destination is newer, to skip copying
* corrected logic to handle cp update
* - added test case that mocks the issue described in #7660
- adjusted conditions to satisfy clippy
* typo
* Update src/uu/cp/src/cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-04-10 19:00:39 +02:00
Sylvestre Ledru
45c978fae6
Merge pull request #7686 from dan-hipschman/numfmt/add-zero-terminated-option
...
numfmt: add --zero-terminated option
2025-04-10 07:14:35 -04:00
Sylvestre Ledru
a89fc48388
Merge pull request #7656 from eduardorittner/main
...
printf: make negative values wrap around with unsigned/hex format
2025-04-10 06:48:50 -04:00
Yuri Astrakhan
d77470be2d
fix clippy issues
2025-04-08 18:25:29 -04:00
Yuri Astrakhan
170831ed2b
chore: remove unneeded parens
...
Keeps code a bit more readable
2025-04-08 18:19:03 -04:00