Commit graph

12413 commits

Author SHA1 Message Date
Ulrich Hornung c62ba559d0 env: support string args by "-S", "-vS" or "--split-strings" 2024-03-19 00:45:05 +01:00
Sylvestre Ledru 6f95d058a2
Merge pull request #6041 from BenWiederhake/dev-cksum-repeat-and-flags
cksum: permit repeated flags, handle overrides correctly, implement base64 output
2024-03-18 21:34:37 +01:00
Ben Wiederhake 133cdde885 cksum: implement and test --base64 output method 2024-03-18 20:59:59 +01:00
Ben Wiederhake 7b219aee63 cksum: implement trivial --tag flag 2024-03-18 20:59:59 +01:00
Ben Wiederhake edb1eb0a76 cksum: allow repeated flags and arguments 2024-03-18 20:59:59 +01:00
Ulrich Hornung 32b5591736
df: switch from u64 to u128 to handle fs with large inodes nr (#6071) 2024-03-18 17:03:23 +01:00
Daniel Hofstetter c9922ba3da
Merge pull request #6092 from Krysztal112233/main
tr: lazily generate the character mapping as necessary
2024-03-18 14:35:11 +01:00
Daniel Hofstetter 05731d13af
tr: remove fixed todo 2024-03-18 13:56:49 +01:00
Krysztal112233 4712015e61 tr: lazily generate the character mapping as necessary 2024-03-18 18:33:07 +08:00
Daniel Hofstetter 727101ccf3
Merge pull request #6087 from sylvestre/pr2
pr: relax some error messages
2024-03-18 10:30:41 +01:00
Sylvestre Ledru 7819cb3cb5
Merge pull request #6091 from cakebaker/csplit_remove_crate_name_attribute
csplit: remove `crate_name` attribute
2024-03-18 10:21:47 +01:00
Daniel Hofstetter e569b0bbe1 csplit: remove "crate_name" attribute 2024-03-18 09:43:30 +01:00
Daniel Hofstetter 2f4969c0e9
Merge pull request #6090 from sylvestre/csplit2
csplit: adjust the error message to match GNU's
2024-03-18 09:33:54 +01:00
Sylvestre Ledru 696615099c
Merge pull request #6088 from cre4ture/fix/gnu_test_dd_not_rewound_sh
`dd` fix gnu test `not-rewound.sh`
2024-03-17 23:03:22 +01:00
Ulrich Hornung 40577177b2
re-use existing fd for stdout even if its a seek-able file
this is important as the fd holds the file offset we need to use
2024-03-17 20:46:49 +01:00
Sylvestre Ledru b49fbd9a21 csplit: run the file check before the arguments verifications 2024-03-17 19:09:34 +01:00
Sylvestre Ledru 8551c55ab3 csplit: adjust the error message to match GNU's
Should fix tests/csplit/csplit
2024-03-16 22:21:44 +01:00
Daniel Hofstetter b9ef78ad13
build-gnu.sh: add xstrtol to spell-checker:ignore 2024-03-16 16:54:03 +01:00
Daniel Hofstetter 15e29b1aeb
Merge pull request #6085 from sylvestre/files0-from
du: adjust one of the GNU error message as ours is better
2024-03-16 16:38:15 +01:00
Sylvestre Ledru f0520b71c1 pr: relax some error messages
Should make tests/pr/pr-tests.pl pass
2024-03-16 12:28:09 +01:00
Sylvestre Ledru 2a1ac55081 du: adjust one of the GNU error message as ours is better 2024-03-16 10:06:24 +01:00
Daniel Hofstetter e450ce8af2
Merge pull request #6072 from zhitkoff/cut-delim
cut: refactor delimiters OsString handling
2024-03-15 16:33:42 +01:00
Sylvestre Ledru ffc476d700
Merge pull request #6077 from cakebaker/fix_imported_redundantly_warnings
Fix two "item x is imported redundantly" warnings
2024-03-15 15:37:52 +01:00
Daniel Hofstetter 6d8b21da80 Fix two "item x is imported redundantly" warnings 2024-03-15 14:53:00 +01:00
Sylvestre Ledru f8e5296aba
Merge pull request #6068 from cakebaker/bump_redox_syscall
Bump redox_syscall from 0.4 to 0.5
2024-03-13 18:23:57 +01:00
Sylvestre Ledru 62a3fb8d3f
Merge pull request #5909 from cakebaker/split_fix_error_message_if_file_doesnt_exist
split: fix error message shown if file doesn't exist
2024-03-13 17:41:56 +01:00
Daniel Hofstetter ada4f48e04 Bump redox_syscall from 0.4 to 0.5 2024-03-13 17:41:18 +01:00
Sylvestre Ledru 65fb81bb8b
Merge pull request #6066 from cakebaker/deny_toml_add_redox_syscall
deny.toml: add redox_syscall to skip list
2024-03-13 16:46:54 +01:00
Daniel Hofstetter fd78d8c3b7 deny.toml: add redox_syscall to skip list 2024-03-13 15:17:07 +01:00
Sylvestre Ledru f89cfe2a5e
Merge pull request #6061 from cre4ture/fix/flaky_timeout_kill_subprocess
Fix/flaky timeout kill subprocess
2024-03-13 11:13:09 +01:00
Sylvestre Ledru eaa8458045
Merge pull request #6065 from cakebaker/deny_toml_remove_deprecated_keys
deny.toml: remove deprecated keys, opt-in to v2
2024-03-13 11:12:49 +01:00
Daniel Hofstetter 08b75589f5 deny.toml: remove deprecated keys, opt-in to v2 2024-03-13 09:35:11 +01:00
Daniel Hofstetter e3f9c80a1e
Merge pull request #6059 from zhitkoff/tty-bstr
tty: fix for Ctrl-D when stdin is a terminal
2024-03-13 08:33:43 +01:00
Sylvestre Ledru 5d1b16e1cd
Merge pull request #6064 from cakebaker/sort_fix_6062
sort: fix incorrectly placed "}" in test
2024-03-13 08:21:54 +01:00
Daniel Hofstetter 09adf77503 sort: fix incorrectly placed "}" in test 2024-03-13 07:19:42 +01:00
zhitkoff 4f9497f266 cut: refactor delimiters osstring 2024-03-12 18:02:43 -04:00
Ulrich Hornung 7e22f99913
remove second sh process to have timeout waiting for the right process 2024-03-12 19:08:51 +01:00
Ulrich Hornung a2a375d0dd
using other than TERM/KILL signal to see if --preserve-status works 2024-03-12 19:05:51 +01:00
Ulrich Hornung 38b15c9736
wait for child to stop after sending signal 2024-03-12 19:04:46 +01:00
Ulrich Hornung abfd000367
avoid sending twice same signal to child process 2024-03-12 19:04:15 +01:00
zhitkoff 8f3c557af1 tty: when stdin is a terminal 2024-03-12 10:39:25 -04:00
Sylvestre Ledru 1725479c06
hashsum: also escape/unescape files with checks (#5868)
* hashsum: make tag conflicts with --text and --check

* hashsum: change the case in one of the gnu test

* build-gnu.sh: use symlink instead of copy

Plus: it won't cp new md5

* hashsum: also escape/unescape files with checks

Should fix tests/cksum/md5sum-bsd.sh

* improve the variable name

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

* Improve test

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

* Improve test

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

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-03-12 14:56:27 +01:00
Daniel Hofstetter c619dbc99c split: fix error msg shown if file doesn't exist 2024-03-12 14:28:25 +01:00
Sylvestre Ledru cc1142cee6
Merge pull request #6057 from uutils/renovate/blake3-1.x
chore(deps): update rust crate blake3 to 1.5.1
2024-03-12 11:14:38 +01:00
renovate[bot] 3515cd44e7
chore(deps): update rust crate blake3 to 1.5.1 2024-03-12 09:35:22 +00:00
Sylvestre Ledru 9de409de97
Merge pull request #6055 from cakebaker/bump_nix
Bump nix from 0.27 to 0.28 & fix issues due to API changes
2024-03-12 10:33:57 +01:00
Daniel Hofstetter 14ac1e160f cat: adapt to type change of unistd::write()
nix 0.28 changed "write(fd: RawFd, buf: &[u8]) -> Result<usize>" to "write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> Result<usize>"
2024-03-12 08:31:15 +01:00
Daniel Hofstetter 6fd37da3e2 stty: remove ofill output flag
flag was removed from nix::sys::termios::OutputFlags in nix 0.28
2024-03-12 08:31:15 +01:00
Daniel Hofstetter 1413054c53 tty: unistd::ttyname takes AsFd instead of RawFd
change introduced by nix 0.28
2024-03-12 08:31:15 +01:00
Daniel Hofstetter 15cb0242ea uucore/pipes: adapt to new return type of nix fn
nix 0.28 changed the return type of unistd::pipe() from Result<(RawFd, RawFd), Error> to Result<(OwnedFd, OwnedFd), Error>
2024-03-12 08:31:15 +01:00