Dorian Péron
569afcc139
Merge pull request #7260 from jfinkels/cat-error-append-same-file
...
cat: error when output is input and appending
2025-02-07 14:44:03 +01:00
Dorian Péron
9a88526867
test(cat): add test for output appending to input file
2025-02-07 07:45:21 -05:00
Jeffrey Finkelstein
c9312eba9a
cat: error when output is input and appending
...
Change `cat` so that it terminates with an error message when the input
file is the same as the output file and the output file is being
appended to. For example,
cat <f >>f
cat: -: input file is output file
Fixes #7165
2025-02-07 07:45:21 -05:00
Daniel Hofstetter
cb3ee46ca9
deny.toml: add bindgen & rustc-hash to skip list
2025-02-07 09:06:28 +01:00
Daniel Hofstetter
b4bc228026
Bump fts-sys from 0.2.13 to 0.2.14
2025-02-07 08:54:28 +01:00
Daniel Hofstetter
e0a7c318a3
Merge pull request #7277 from uutils/renovate/once_cell-1.x-lockfile
...
chore(deps): update rust crate once_cell to v1.20.3
2025-02-07 07:21:38 +01:00
Daniel Hofstetter
39a7e9d1ef
Merge pull request #7278 from uutils/renovate/selinux-0.x
...
chore(deps): update rust crate selinux to 0.5.0
2025-02-07 07:10:08 +01:00
renovate[bot]
7bb2bb2f30
chore(deps): update rust crate selinux to 0.5.0
2025-02-07 05:22:35 +00:00
Jeffrey Finkelstein
c23e1db9c5
Use the last, not first, two digits as the year
2025-02-06 22:02:47 -05:00
renovate[bot]
eb61056dfe
chore(deps): update rust crate once_cell to v1.20.3
2025-02-07 00:44:05 +00:00
Dorian Peron
e550e3d72e
test(tee): Add test for broken pipe behavior with -p
2025-02-06 12:25:34 +01:00
Dorian Peron
67aa0b25ab
tee: fix -p behavior upon broken pipe stdout
2025-02-06 11:29:29 +01:00
Jeffrey Finkelstein
6dfa1f8276
touch: support obsolete POSIX timestamp argument
...
Support obsolete form of timestamp argument for old POSIX versions. In
summary, when older versions of POSIX are used and the first positional
argument looks like a date and time, then treat it as a timestamp
instead of as a filename. For example, before this commit
_POSIX2_VERSION=199209
POSIXLY_CORRECT=1
touch 01010000 11111111
would create two files, `01010000` and `11111111`. After this commit,
the first argument is interpreted as a date and time (in this case,
midnight on January 1 of the current year) and that date and time are
set on the file named `11111111`.
Fixes #7180 .
2025-02-05 22:04:47 -05:00
Dorian Péron
8fd4e1cef4
Add .envrc
2025-02-05 00:27:20 +01:00
Dorian Péron
1e686ec25c
patch build-gnu.sh for NixOS
2025-02-05 00:27:20 +01:00
Dorian Péron
3f53522241
add a flake.nix file for the development environment, add direnv-related files to .gitignore
2025-02-05 00:27:20 +01:00
Sylvestre Ledru
ee0d178f8c
Merge pull request #7268 from uutils/renovate/blake2b_simd-1.x-lockfile
...
chore(deps): update rust crate blake2b_simd to v1.0.3
2025-02-04 23:36:48 +01:00
renovate[bot]
9065c65aa4
chore(deps): update rust crate blake2b_simd to v1.0.3
2025-02-04 20:25:56 +00:00
Sylvestre Ledru
de5a2bb944
Merge pull request #7267 from cakebaker/cargo_toml_fix_incorrect_lint_name
...
Cargo.toml: fix incorrect lint name
2025-02-04 16:48:06 +01:00
Daniel Hofstetter
02cd31a4d9
Cargo.toml: fix incorrect lint name
2025-02-04 16:09:58 +01:00
Sylvestre Ledru
25bfe839be
Merge pull request #7265 from cakebaker/uptime_remove_duplicate_test
...
uptime: remove duplicate test
2025-02-04 10:07:12 +01:00
Daniel Hofstetter
90208096fd
uptime: remove duplicate test
2025-02-04 09:24:32 +01:00
Daniel Hofstetter
d75de5d2f6
Merge pull request #7263 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.28
2025-02-04 07:07:20 +01:00
Daniel Hofstetter
aad8fa0215
Merge pull request #7264 from uutils/renovate/z85-3.x-lockfile
...
fix(deps): update rust crate z85 to v3.0.6
2025-02-04 07:04:25 +01:00
renovate[bot]
aa90d0046f
fix(deps): update rust crate z85 to v3.0.6
2025-02-04 04:32:25 +00:00
renovate[bot]
29aa1b331c
chore(deps): update rust crate clap to v4.5.28
2025-02-04 00:53:46 +00:00
karlmcdowall
f94ff78ea4
head: fix bug reading back through files ( #7248 )
...
* head: fix bug reading back through files
Fix issue #7247 .
Rework logic for reading/seeking backwards through files.
Bug was seen when reading back through large files.
Added test case to validate fix.
2025-02-03 20:13:46 +01:00
Daniel Hofstetter
93d58b17b4
Merge pull request #7261 from RenjiSann/cksum-6375
...
cksum: Fix #6375 and un-ignore now passing tests
2025-02-03 14:08:51 +01:00
Dorian Péron
f2cf08b4e6
test(cksum): fix and un-ignore test_md5_bits
2025-02-03 11:06:47 +01:00
Dorian Péron
b8abebfaf9
test(cksum): un-ignore now passing test test_blake2b_tested_with_sha1
2025-02-03 09:58:52 +01:00
Dorian Péron
2fadd253f7
cksum: fix --binary reset (issue #6375 )
2025-02-03 09:58:52 +01:00
Sylvestre Ledru
717a6921fc
Merge pull request #7246 from RenjiSann/printf-negative-asterisk
...
printf: negative asterisk param changes alignment
2025-02-02 23:13:56 +01:00
Sylvestre Ledru
fc4f39c582
Merge pull request #7259 from jfinkels/printf-missing-hex-value
...
printf: error on missing hexadecial escape value
2025-02-02 22:28:38 +01:00
Jeffrey Finkelstein
db280b6e9f
printf: error on missing hexadecial escape value
...
Change `printf` to correctly terminate with an error message when an
escape sequence starts with `\x` but doesn't include a literal
hexadecimal value after. For example, before this commit,
printf '\x'
would output `\x`, but after this commit, it terminates with an error
message,
printf: missing hexadecimal number in escape
Fixes #7097
2025-02-02 11:07:31 -05:00
sreehari prasad
c2505841e0
Tests: provides easy mount of temp fs ( #7249 )
2025-02-01 19:01:49 +01:00
Dorian Peron
dcc2f1b72c
printf: remove unneeded Result<> from resolve_asterisk* functions
2025-01-31 16:54:01 +01:00
Dorian Peron
707e346b84
printf: negative asterisk param changes alignement
2025-01-31 16:50:26 +01:00
Daniel Hofstetter
3891ee1159
Merge pull request #7244 from sylvestre/sleep
...
Decrease more sleep
2025-01-31 14:52:24 +01:00
Sylvestre Ledru
ba0d54c9af
Merge pull request #7245 from cakebaker/fuzz_update_dependencies
...
fuzz: update dependencies
2025-01-31 10:36:35 +01:00
Daniel Hofstetter
072d503d80
fuzz: update dependencies
2025-01-31 10:03:32 +01:00
Sylvestre Ledru
8c201c1779
tests/cp: Decrease more sleep
2025-01-31 09:56:47 +01:00
Daniel Hofstetter
a9645af366
Merge pull request #7232 from uutils/seep
...
tests: Decrease the various sleeps
2025-01-31 09:17:24 +01:00
Sylvestre Ledru
be10ae0cb9
Merge pull request #7242 from cakebaker/bump_rand_crates
...
Bump `rand` & `rand_core` to `0.9.0`, adapt code to API changes
2025-01-31 08:38:53 +01:00
Sylvestre Ledru
1cd78c7a2b
Merge pull request #7243 from jfinkels/build-reduce-touch-replacements
...
Remove some replacements of touch in build script
2025-01-31 00:10:14 +01:00
Jeffrey Finkelstein
2cb2f30846
Remove some replacements of touch in build script
...
Remove some replacements of uutils `touch` for GNU `touch` in the
`util/build-gnu.sh` script, since recent improvements to the
`parse_datetime` have made these replacements unnecessary.
2025-01-30 17:37:04 -05:00
Daniel Hofstetter
9aec9dc454
fuzz: adapt to API changes of rand
2025-01-30 14:41:36 +01:00
Daniel Hofstetter
527602248f
shuf: adapt to API changes of rand
2025-01-30 10:39:00 +01:00
Daniel Hofstetter
14ce43fe52
tail: adapt tests to API change of rand
2025-01-30 08:52:42 +01:00
Daniel Hofstetter
46beccd409
factor: adapt tests to API changes of rand
2025-01-30 08:52:42 +01:00
Daniel Hofstetter
410bb30c64
split: adapt tests to API changes of rand
2025-01-30 08:52:42 +01:00