Commit graph

11310 commits

Author SHA1 Message Date
renovate[bot]
3da5809910
chore(deps): update rust crate memmap2 to 0.8 2023-09-25 01:21:46 +00:00
renovate[bot]
6aba3a4d67
fix(deps): update rust crate wild to 2.2 2023-09-24 20:04:53 +00:00
Sylvestre Ledru
ec7ced2518 Fuzz the expr command 2023-09-24 18:47:15 +02:00
Daniel Hofstetter
31d32e3ee2
Merge pull request #5310 from tertsdiepraam/expose-whoami
Expose `whoami` function (for nushell!)
2023-09-24 15:24:42 +02:00
Sylvestre Ledru
1c03d1614c
Merge pull request #4199 from cakebaker/tail_remove_unused_var_rename_other_var
tail: remove unused "_event_counter"; rename "_timeout_counter" to "timeout_counter"
2023-09-24 14:47:33 +02:00
Leviticoh
b90b59c003
uniq: added support for deprecated -N option (#4228) 2023-09-24 14:44:44 +02:00
Sylvestre Ledru
e8b27d1714
Merge pull request #4527 from bbara/dd-skip-seek
dd: fix GNU test 'dd/skip-seek-past-dev'
2023-09-24 14:43:15 +02:00
Terts Diepraam
1dcf3e6353 expose whoami function (for nushell!) 2023-09-24 14:13:16 +02:00
Terts Diepraam
4ca792d2ff
Merge pull request #5306 from cakebaker/nl_fix_output_order_if_stdin_and_files_are_mixed
nl: fix output order if stdin and files are mixed
2023-09-24 12:12:54 +02:00
Terts Diepraam
50255a2463
Merge pull request #5305 from sylvestre/dired-prefix
ls --dired: replace the previous "total: xx" padding method
2023-09-24 12:09:26 +02:00
tommady
bd0fb817a7
cp: fix the result of inodes are not the same when preserve links is flagged (#5064)
Should fix:
```
rm -rf a b c
touch a
ln -s a b
mkdir c
./target/debug/coreutils cp --preserve=links -R -H a b c
a_inode=$(ls -i c/a|sed 's,c/.*,,')
b_inode=$(ls -i c/b|sed 's,c/.*,,')
echo "$a_inode" = "$b_inode"
```
2023-09-24 10:53:27 +02:00
Benjamin Bara
17f4d17021 tests: dd: add skip-seek-past-dev tests
These tests try to read or write past a block device, where the block device is either given as
stdin or stdout. It requires access to the block device, and therefore is executed as root. For now,
it is assumed that a block device "/dev/sda1" with a size smaller than 10000000000000000 exists.
2023-09-24 10:00:10 +02:00
Benjamin Bara
8a9b29ddfb dd: fix GNU test 'dd/skip-seek-past-dev' 2023-09-24 10:00:10 +02:00
Benjamin Bara
616c3f4a7f util: extend run_ucmd_as_root for stdin/stdout
This enables to give path to files (as str) which are then used as either stdin or stdout.
2023-09-24 10:00:10 +02:00
Daniel Hofstetter
a4a69c8ee7 tail: "_timeout_counter" -> "timeout_counter" 2023-09-24 09:59:06 +02:00
Daniel Hofstetter
306a58a731 tail: remove unused var "_event_counter" 2023-09-24 09:59:06 +02:00
Sylvestre Ledru
e2e42ac265
Merge pull request #5304 from KAAtheWiseGit/main
`rm`: make the utility public
2023-09-23 18:38:25 +02:00
KAA the Wise
4b76b2f332 rm: document PromptProtected interactive mode option 2023-09-23 15:57:30 +03:00
Daniel Hofstetter
06219350fa nl: fix output order if stdin and files are mixed 2023-09-23 14:44:30 +02:00
Sylvestre Ledru
ba3f266b2c
Merge pull request #5285 from cakebaker/nl_multiple_files
nl: make line number and --join-blank-lines work over multiple files
2023-09-23 09:34:04 +02:00
Sylvestre Ledru
48613b4717 ls --dired: replace the previous "total: xx" padding method
by something easier
2023-09-23 09:31:16 +02:00
Sylvestre Ledru
30f1fceddc
add nushell to the list of ignored names 2023-09-23 09:29:00 +02:00
Sylvestre Ledru
e2561f53a4
Merge pull request #5303 from uutils/renovate/md-5-0.x
chore(deps): update rust crate md-5 to 0.10.6
2023-09-22 23:31:03 +02:00
Sylvestre Ledru
d6da6fb546
Merge pull request #5302 from cakebaker/relpath_fix_5300
relpath: show error if no argument provided
2023-09-22 23:30:52 +02:00
KAA the Wise
20fb473da8 rm: make the remove function public 2023-09-22 19:18:27 +03:00
KAA the Wise
75044c1bc4 rm: make option types public
Made `Options` and `InteractiveMode` public and added documentation for them.
2023-09-22 19:17:24 +03:00
renovate[bot]
cc6a1ae4f4
chore(deps): update rust crate md-5 to 0.10.6 2023-09-22 15:40:11 +00:00
Sylvestre Ledru
4094231b89
Merge pull request #5301 from cakebaker/ls_fix_failing_test
ls: fix test which fails if /tmp uses tmpfs
2023-09-22 13:24:53 +02:00
Daniel Hofstetter
38831c46d1 relpath: show error if no argument provided
Fixes #5300
2023-09-22 10:58:12 +02:00
Daniel Hofstetter
0794d1338d ls: fix test which fails if /tmp uses tmpfs 2023-09-22 10:43:23 +02:00
Daniel Hofstetter
a2691c9f4a
Merge pull request #5299 from sylvestre/dired-2
ls --dired - some minor cleanup
2023-09-22 06:50:43 +02:00
Sylvestre Ledru
42d93fcc59
Merge pull request #5291 from cakebaker/ci_fix_checkscripts_yml
ci: remove committing from CheckScripts.yml
2023-09-21 22:13:13 +02:00
Sylvestre Ledru
9de7ab84ac
Merge pull request #5298 from uutils/renovate/sha1-0.x
chore(deps): update rust crate sha1 to 0.10.6
2023-09-21 22:12:43 +02:00
Sylvestre Ledru
a12dd2ee1e ls rename the function for consistency 2023-09-21 21:23:08 +02:00
Sylvestre Ledru
8db6146dd3 ls remove old comment 2023-09-21 21:22:27 +02:00
Sylvestre Ledru
1d10e0c674 ls: rename the function for something more explicit 2023-09-21 21:22:24 +02:00
renovate[bot]
df211cd45f
chore(deps): update rust crate sha1 to 0.10.6 2023-09-21 16:11:20 +00:00
pin
23ee9b622d
Add NetBSD support to uucore. (#5289)
* Add NetBSD support to uucore.

Fixes https://github.com/uutils/coreutils/issues/5288
2023-09-21 12:24:08 +02:00
Daniel Hofstetter
aeb3b14736
Merge pull request #5292 from uutils/renovate/winapi-util-0.x
chore(deps): update rust crate winapi-util to 0.1.6
2023-09-21 07:56:01 +02:00
Daniel Hofstetter
f029242a70
Merge pull request #5296 from uutils/renovate/blake3-1.x
chore(deps): update rust crate blake3 to 1.5.0
2023-09-21 07:44:32 +02:00
Daniel Hofstetter
cee47a8780
Merge pull request #5295 from uutils/renovate/rayon-1.x
chore(deps): update rust crate rayon to 1.8
2023-09-21 07:00:46 +02:00
renovate[bot]
78e774a937
chore(deps): update rust crate blake3 to 1.5.0 2023-09-21 04:49:34 +00:00
renovate[bot]
2ee4006bfd
chore(deps): update rust crate rayon to 1.8 2023-09-20 23:08:42 +00:00
renovate[bot]
3bb180f471
chore(deps): update rust crate winapi-util to 0.1.6 2023-09-20 16:33:12 +00:00
Daniel Hofstetter
5eb1fd0b02 ci: remove committing from CheckScripts.yml 2023-09-20 10:36:32 +02:00
Sylvestre Ledru
a0f6df4b79
Merge pull request #5290 from cakebaker/build_gnu_sh_fix_formatting
build-gnu.sh: fix formatting
2023-09-20 10:12:15 +02:00
Daniel Hofstetter
89aef11208 build-gnu.sh: fix formatting 2023-09-20 10:02:20 +02:00
Sylvestre Ledru
9b4d2c6bc4
ls: implement --dired
* Support ls --dired

* stat-failed.sh: update of the test - we have a small difference

* ls --dired: address some of the comments

* fix warnings

* use unwrap()

* Improve test

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

* Simplify test

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

* Remove a word from the spell ignore

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

* remove duplication of the spell ignore

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

* rustfmt

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-09-20 08:17:46 +02:00
Daniel Hofstetter
bc8e3818a4
Merge pull request #5287 from uutils/renovate/davidanson-markdownlint-cli2-action-13.x
chore(deps): update davidanson/markdownlint-cli2-action action to v13
2023-09-20 08:12:43 +02:00
renovate[bot]
5586e7bf2b
chore(deps): update davidanson/markdownlint-cli2-action action to v13 2023-09-20 04:47:16 +00:00