Commit graph

13634 commits

Author SHA1 Message Date
andreistan26
5b087e9624
Fix cut when lines dont end with specified delim (#5844)
Print lines without delimiters only when they end with specified line terminator('\n' by default or `\0` if `-s`)

Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-04 00:04:55 +01:00
Sylvestre Ledru
17d4e4fde1
Merge pull request #6399 from tertsdiepraam/more-mem-usage
`more`: reduce memory usage a bit
2024-12-03 23:15:47 +01:00
Sylvestre Ledru
843c0c2c0f
Merge pull request #6119 from hamflx/fix/invalid-backup-numbered-path
mv: fix invalid numbered backup path
2024-12-03 23:13:39 +01:00
Anirban Halder
a16630fded
rm: fix the usage of '/..' '/.' with -rf options
fix the test tests/rm/r-4

---------

Co-authored-by: Julian Beltz <MJayBeltz@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-03 22:51:03 +01:00
Sylvestre Ledru
c1f82b158c fix rustfmt+clippy 2024-12-03 22:45:00 +01:00
Daniel Hofstetter
8a481ccf1c
Merge pull request #6908 from uutils/renovate/time-0.x-lockfile
chore(deps): update rust crate time to v0.3.37
2024-12-03 11:37:54 +01:00
renovate[bot]
abfedc3431
chore(deps): update rust crate time to v0.3.37 2024-12-03 10:09:49 +00:00
Sylvestre Ledru
763306ccc1
Merge pull request #6840 from jesseschalken/reuse-metadata-instead-of-path-is-dir
du: Reuse existing metadata instead of calling path.is_dir() again
2024-12-02 20:41:35 +01:00
Sylvestre Ledru
c45f346b5b
Merge pull request #6905 from uutils/revert-5788-mv_same_file
Revert "mv: show "same file" error for `mv d/f d`"
2024-12-02 20:40:07 +01:00
Sylvestre Ledru
9877085702
Revert "mv: show "same file" error for mv d/f d" 2024-12-02 20:39:39 +01:00
Sylvestre Ledru
527bb6fad8
Merge pull request #5788 from cakebaker/mv_same_file
mv: show "same file" error for `mv d/f d`
2024-12-02 20:37:41 +01:00
Julian
2799b288e3
tail: fix issue #6543 (--pid when reading from stdin) (#6582)
---------

Co-authored-by: just-an-engineer <Julian.Beltz@zetier.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-02 19:04:36 +01:00
Sylvestre Ledru
59a712da75
Merge pull request #6903 from LegNeato/patch-1
Make EscapedChar and friends pub
2024-12-02 18:48:18 +01:00
Christian Legnitto
2d81463399
Make EscapedChar and friends pub 2024-12-02 10:50:48 -04:00
Daniel Hofstetter
2e4b7c8cb7 mv: show "same file" error for "mv d/f d" 2024-12-02 10:27:10 +01:00
hamflx
6b32c30d57 mv: fix invalid numbered backup path 2024-12-02 10:22:55 +01:00
Terts Diepraam
b2510feb46 clean up use of u16s and patterns 2024-12-02 10:10:57 +01:00
Terts Diepraam
2fef5be8f7 more: reduce memory usage a bit 2024-12-02 10:10:57 +01:00
Jesse Schalken
6487347bc6 Reuse existing metadata instead of calling path.is_dir() again 2024-12-02 10:01:38 +01:00
Sylvestre Ledru
9dec29f613
Merge pull request #6891 from cakebaker/uucore_perms_fix_todo
uucore/perms: use ORs instead of `match` (fix todo)
2024-12-02 10:01:10 +01:00
Daniel Hofstetter
6a7c0112cb
Merge pull request #6853 from sylvestre/comm
comm: generate an error if the input is a directory
2024-11-30 10:55:14 +01:00
Sylvestre Ledru
2ad3c45230
tr: generate an error if the input is a directory (#6855)
* tr: generate an error if the input is a directory

tested by tests/misc/read-errors

* tr: improve the test

* tr: take the commentinto account
2024-11-30 10:38:46 +01:00
Sylvestre Ledru
0cae322dfa comm: generate an error if the input is a directory
tested by tests/misc/read-errors
2024-11-30 10:26:34 +01:00
Sylvestre Ledru
37fb0a02f8
Merge pull request #6899 from cakebaker/clippy_fix_needless_lifetimes
uudoc,chcon: fix `needless_lifetimes` warnings
2024-11-30 09:46:10 +01:00
Daniel Hofstetter
2e8a759f97
Merge pull request #6902 from uutils/renovate/terminal_size-0.x-lockfile
chore(deps): update rust crate terminal_size to v0.4.1
2024-11-30 07:15:41 +01:00
renovate[bot]
1365f6c025
chore(deps): update rust crate terminal_size to v0.4.1 2024-11-29 21:46:48 +00:00
Daniel Hofstetter
000583576e
Merge pull request #6901 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.167
2024-11-29 13:25:48 +01:00
renovate[bot]
4f7f85da47
fix(deps): update rust crate libc to v0.2.167 2024-11-29 10:45:33 +00:00
Daniel Hofstetter
cd4506f67d
Merge pull request #6900 from uutils/renovate/dawidd6-action-download-artifact-7.x
chore(deps): update dawidd6/action-download-artifact action to v7
2024-11-29 11:44:18 +01:00
renovate[bot]
270525a02f
chore(deps): update dawidd6/action-download-artifact action to v7 2024-11-29 10:14:38 +00:00
Daniel Hofstetter
cba96dffd8
Merge pull request #6885 from sylvestre/du-dedup
du: deduplicate the input
2024-11-29 11:13:59 +01:00
Daniel Hofstetter
865da0caad uudoc,chcon: fix needless_lifetimes warnings 2024-11-29 10:47:14 +01:00
Sylvestre Ledru
95bd50e09a du: deduplicate the input
Should fix:
tests/du/hard-link.sh
2024-11-29 10:26:27 +01:00
Daniel Hofstetter
79f991dd05
Merge pull request #6898 from sylvestre/fix-clipp
Fix new clippy warnings
2024-11-29 09:48:21 +01:00
Sylvestre Ledru
ffbc682b92
Use the other comment syntax as it is not related
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-11-29 09:19:30 +01:00
Sylvestre Ledru
8df608cf97 clippy: used underscore-prefixed item 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
9d404e5ee8 clippy: it is more idiomatic to use 'Option<&T>' instead of '&Option<T>' 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
c0840dd43f clippy: unneeded 'return' statement 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
a3a4457a44 clippy: spawned process is never 'wait()'ed on 2024-11-28 22:10:28 +01:00
Sylvestre Ledru
41a3695b3f uucore: Fix a clippy warning
The following explicit lifetimes could be elided: 'a
2024-11-28 19:25:17 +01:00
Sylvestre Ledru
4d3902426a clippy: fix unneeded 'return' statement 2024-11-28 19:24:36 +01:00
Sylvestre Ledru
cfb0b95b62 clippy: fix 'empty line after doc comment' 2024-11-28 19:24:33 +01:00
Sylvestre Ledru
29de3ee43c run rustfmt on src/uu/shuf/src/shuf.rs 2024-11-28 19:18:15 +01:00
Peng Zijun
75de5a0613
tr: Add ambiguous octal escape warning (#6886)
* tr: Add ambiguous octal escape warning, issue #6821

* tr: Make code cleaner
2024-11-28 09:14:16 +01:00
Sylvestre Ledru
dea0afb2a5
Merge pull request #6896 from cakebaker/env_add_cfg_attributes_to_tests
env: add missing `cfg` attributes to tests
2024-11-27 11:55:57 +01:00
Daniel Hofstetter
ab9e5cb8a7 env: add missing cfg attributes to tests 2024-11-27 09:29:22 +01:00
Daniel Hofstetter
1a0bd63058
Merge pull request #6895 from uutils/renovate/blake3-1.x-lockfile
chore(deps): update rust crate blake3 to v1.5.5
2024-11-27 07:04:07 +01:00
Daniel Hofstetter
8594530376
Merge pull request #6894 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.166
2024-11-27 07:02:12 +01:00
renovate[bot]
069ec76f5b
chore(deps): update rust crate blake3 to v1.5.5 2024-11-27 04:27:39 +00:00
renovate[bot]
3e1328c81a
fix(deps): update rust crate libc to v0.2.166 2024-11-27 02:09:06 +00:00