1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-13 08:41:07 +00:00
Commit graph

4029 commits

Author SHA1 Message Date
Sylvestre Ledru
bdcd2ef00a install: implement option -C
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-06-29 23:19:09 +02:00
Dorian Péron
56ce0e28ad
cksum: Fix file quoting on stderr (#8272)
* cksum: handle escaping in stderr for file errors

* uutests: Minor fix and stdX_contains_bytes feature

* test(cksum): add test for stderr escaping
2025-06-29 22:07:27 +02:00
VenetiaFurtado
c64adee068
touch: add -f flag (#8274)
* touch: fix f flag

* Update src/uu/touch/src/touch.rs

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>

* touch: add test for f flag

* Update src/uu/touch/src/touch.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_touch.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* remove unnecessary comment

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-06-29 15:26:33 +02:00
jenningsfan
3214c4d604
install: don't error when multiple arguments of the same type are given, instead override with last one (#8033) (#8053) 2025-06-28 09:57:55 +02:00
Tomasz Guz
cad92245f7 od: fix handling of non-ascii chars 2025-06-27 12:42:18 +02:00
Luv-Ray
fb2399f56b
fix clippy (#8275)
* fix clippy

* update

* update
2025-06-27 09:15:24 +02:00
Sylvestre Ledru
6287c7bfa9 l10n: port shred for translation + add french 2025-06-26 08:06:01 +02:00
Daniel Hofstetter
9e57ce82d7
Merge pull request #8244 from sylvestre/l10n-sort
l10n: port sort for translation + add french
2025-06-25 10:13:57 +02:00
Dorian Peron
3fe7f94396 test/ls: add test for locale-aware quoting 2025-06-25 00:49:01 +02:00
Sylvestre Ledru
b68d8a975d sort: add a test we were not covering 2025-06-25 00:29:44 +02:00
Sylvestre Ledru
dc9dd3fb70 l10n: port ls for translation + add french
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-06-23 22:29:12 +02:00
Phineas Jensen
faa6a9bb95 tests/fold: add tests for non-utf8 streams 2025-06-22 20:57:19 -06:00
Timothy G.
d05460a16c
unexpand: add -f short alias for --first-only (#8229) 2025-06-19 21:59:23 +02:00
Daniel Hofstetter
39c793c885
Merge pull request #8221 from willshuttleworth/stty-size
stty: add options to set and print terminal size
2025-06-19 16:59:00 +02:00
Will Shuttleworth
10f8d77560 stty: add option to print terminal size 2025-06-19 08:38:47 -04:00
Will Shuttleworth
93ac655936 stty: add tests for setting rows/cols 2025-06-19 08:38:08 -04:00
Sylvestre Ledru
dcaef2eb65
Merge pull request #8225 from cakebaker/tee_move_test
tee: move test to `linux_only` module
2025-06-19 10:43:04 +02:00
Sudhakar Verma
c674cf1839
Merge pull request #8217 from sudhackar/ls-fix
ls: follow symlinks for xattrs, fix #8216
2025-06-19 10:17:25 +02:00
Daniel Hofstetter
cccaba63c2 tee: move test to "linux_only" module 2025-06-19 09:42:22 +02:00
Maxim
e354ddea02 tee: remove output buffering
To comply with POSIX standard `tee` implementation must not buffer
its output, so we replace std::io::copy implementation that does
buffering with the custom one.
2025-06-19 09:28:38 +09:00
Maxim
1613cdba10 tests/tee: move no_more_writable test to linux_only module 2025-06-19 00:37:26 +09:00
Maxim
7310c7fca1 tests/tee: enable no_more_writable test 2025-06-19 00:35:53 +09:00
Will Shuttleworth
01ac6dfd18
Merge pull request #8135 from willshuttleworth/stty-set-undefined
stty: fix mappings with empty string literal args
2025-06-16 09:45:11 +02:00
Will Shuttleworth
6023888363
stty: add ispeed/ospeed settings (#8180)
* stty: add ispeed/ospeed settings

* stty: fix spell check errors
2025-06-15 16:46:54 +02:00
Dorian Péron
625e5eeb09
Merge pull request #8185 from frendsick/fix/printf-hex-zero-padding
printf: Fix formatting hexadecimals with padding
2025-06-15 00:42:56 +02:00
Teemu Pätsi
cf7255f085
printf: Test formatting hex with padding 2025-06-15 00:36:38 +03:00
Dorian Péron
5936408922
Merge pull request #7484 from karlmcdowall/head_bug_bug_bug
head: fix bug with non-terminated files.
2025-06-14 21:22:24 +02:00
Dorian Péron
e2eb601948
Merge pull request #7918 from Qelxiros/7906-hashsum-errors
hashsum: don't exit early on io errors
2025-06-14 21:17:30 +02:00
Sylvestre Ledru
db229ea6d5
Merge pull request #8127 from MarcusGrass/mg/coreutils-version
feat: add `--version` argument to print main binary version
2025-06-14 15:30:47 +02:00
Tomasz Guz
b5e0304ea7 expr: fix builtin functions precedence 2025-06-13 14:51:25 +02:00
Yuankun Zhang
e1f40ff601
cat: add error handling in write_fast function (#8091) 2025-06-13 11:02:03 +02:00
Will Shuttleworth
e5bde07591
tail: fix test that disables output in bash shell (#8157)
* tail: fix test that disables output in bash shell

* tail: fix platform related issues after test change

* tail: use new imports on same platforms as test they are needed for
2025-06-13 09:44:18 +02:00
Tomasz Guz
6049bc091a expr: fix substr parsing 2025-06-11 22:53:24 +02:00
MarcusGrass
6ea6e8cbb4
fix: Add test for main binary version information output 2025-06-10 20:36:17 +02:00
Will Shuttleworth
4be9e7679d stty: fix negated options getting rejected by clap 2025-06-09 17:35:06 -04:00
Daniel Hofstetter
c14aec47f0
Merge pull request #8112 from sylvestre/l10n-tr
l10n: port tr for translation + add french
2025-06-09 15:06:09 +02:00
Sylvestre Ledru
e4698255f2 l10n: port pwd for translation + add french 2025-06-08 20:08:50 +02:00
Sylvestre Ledru
aba6128fc1 l10n: port tr for translation + add french 2025-06-08 13:57:42 +02:00
Daniel Hofstetter
3ffaa335df rm: use new_cmd! to simplify some tests 2025-06-06 16:53:55 +02:00
Daniel Hofstetter
d503b7c7c7 rm: merge some imports in test file 2025-06-06 16:42:32 +02:00
Daniel Hofstetter
1dbd452c8f rm: use consistent naming for test functions 2025-06-06 16:40:16 +02:00
Yuri Astrakhan
60c55d7c07
chore: cleanup workspace crates (#8058)
* chore: cleanup workspace crates

* properly add all crates to the workspace cargo.toml as members
  * except `fuzz` because it still has some issues, TBD
* use quotes around `true` and `false` to ensure there is no bool confusion
* remove a few leftover readme comments
* mark all unpublishable crates as `publish = false` to avoid accidental publishing
* Add `uutests` to the main workspace

* grammar

* a bit more cleanup based on feedback

* revert true/false

* Update tests/benches/factor dependencies
2025-06-06 13:56:08 +02:00
Teemu Pätsi
4d40671d79
cat: Fix reporting "input file is output file" error when outputting to an input file (#8025)
* cat: Check if a file can be overwritten safely in Unix

* cat: Check if a file can be overwritten safely in Windows

* cat: Test writing read-write file that is input and output

* cat: Unit test `is_appending` function

* cat: Unit test `is_unsafe_overwrite` function

* cat: Comment why a few function calls could return Err

* cat: Remove obvious comments from test
2025-06-06 12:01:31 +02:00
Sylvestre Ledru
9e21259e2d
Merge pull request #8062 from drinkcat/sort-float
sort: Make use of ExtendedBigDecimal in -g sorting, then attempt to recover some performance
2025-06-06 12:01:04 +02:00
Will Shuttleworth
61bd11a551
stty: set control characters (#7931)
* reworked arg processing. control character mappings are correctly grouped now, ie 'stty erase ^H'

* stty: setting control chars to undefined (disabling them) is implemented

* setting control chars

* stty: can now set control chars. need to improve checks on valid mappings

* stty: matches GNU in what control character mappings are allowed

* stty: run rustfmt and remove extra comments

* stty: setting control char code review fixes

* stty: fix rustfmt errors

* stty: more small edits after review

* stty: refactor set control char changes for better testing

* stty: fix ci error

* stty: fix issues from code review
2025-06-05 11:38:51 +02:00
Daniel Hofstetter
ccc6233fba
Merge pull request #8054 from sylvestre/locale3
l10n: convert the md files to fluent
2025-06-05 09:39:42 +02:00
Sylvestre Ledru
d9f0868a45 l10n: Adjust a test, I don't think we need to full path with 'usage' 2025-06-04 19:24:03 +02:00
ALBIN BABU VARGHESE
a7a493a604
mv: moving dangling symlinks into directories (#8064)
* Fix linting and style issues

* Change condition to not fail for dangling symlinks

The function `move_files_into_dir` had a condition that failed when a
dangling symlink was moved into a folder, which resulted in a file
or directory doesn't exist error

* Added a test case
2025-06-04 17:25:53 +02:00
Nicolas Boichat
8c98f433bf test_sort: Add one more test checking arbitrary precision handling 2025-06-04 09:54:44 +02:00
Nicolas Boichat
ee1a6d2e66 test_sort: Add more sort use cases
test_g_float comes from GNU test, the other one is manually crafted.
2025-06-04 09:33:17 +02:00