Daniel Hofstetter
035032cd83
Merge pull request #5158 from cakebaker/nl_section_delimiter
...
nl: implement -d/--section-delimiter
2023-09-29 10:42:04 +02:00
Daniel Hofstetter
1a87c31b1e
Merge pull request #5336 from sylvestre/isdigit
...
Replace list of digit by is_digit
2023-09-29 10:32:07 +02:00
Sylvestre Ledru
55fd1f3617
Replace list of digit by is_ascii_digit
...
and some ride along simplification
2023-09-28 23:07:01 +02:00
Sylvestre Ledru
a576054d42
fuzz: fix clippy warnings
2023-09-28 21:52:26 +02:00
Sylvestre Ledru
e6f9e358d4
fuzz: create a function run_gnu_cmd to deduplicate the code
2023-09-28 21:48:34 +02:00
Daniel Hofstetter
aa0437c28a
Merge pull request #5332 from sylvestre/fuzz
...
fuzz: move the common duplicated code into a function
2023-09-28 17:53:10 +02:00
Sylvestre Ledru
a17ede9ef0
Remove the full path to test
2023-09-28 15:36:06 +02:00
Sylvestre Ledru
47a87304a1
Merge pull request #5333 from cakebaker/fmt_use_claps_value_parser_for_goal_and_width
...
fmt: use clap's value parser for goal & width
2023-09-28 13:03:54 +02:00
Daniel Hofstetter
51eb20a15d
fmt: use clap's value parser for goal & width
2023-09-28 10:50:56 +02:00
Sylvestre Ledru
f0f64bd3b7
fuzz: move the common duplicated code into a function
2023-09-28 08:42:30 +02:00
John Shin
9c0b9cae56
seq: simplyfy nan and inf parsing
2023-09-27 14:55:08 -07:00
KAA the Wise
aea986948d
mkdir: make mkdir
public and document it
...
- Made the `mkdir` function public. Added documentation, describing the
behavior and parameters
- Moved the GNU dot-stripping behavior from `exec` to `mkdir`.
2023-09-27 23:08:08 +03:00
tommady
2789885648
cp: fix cp -dR --no-preserve=links d c should have different inodes ( #5320 )
...
* fix issue 5308
2023-09-27 13:16:10 +02:00
Daniel Hofstetter
df584f6368
Merge pull request #5325 from uutils/renovate/sha2-0.x
...
chore(deps): update rust crate sha2 to 0.10.8
2023-09-27 06:40:20 +02:00
Sylvestre Ledru
f31c017275
Merge pull request #5324 from cakebaker/expr_fix_and_and_or
...
expr: interpret numbers != 0 as true for | and &
2023-09-26 22:55:50 +02:00
renovate[bot]
6c7a20fc18
chore(deps): update rust crate sha2 to 0.10.8
2023-09-26 16:57:54 +00:00
Daniel Hofstetter
ff500d7d6f
expr: interpret numbers != 0 as true for | and &
2023-09-26 16:24:00 +02:00
Daniel Hofstetter
ffbe452b01
Merge pull request #5322 from uutils/renovate/exacl-0.x
...
chore(deps): update rust crate exacl to 0.11.0
2023-09-26 11:42:59 +02:00
Sylvestre Ledru
7ebdab694c
Merge pull request #4988 from sylvestre/cut-huge
...
cut-huge-range.sh: make cut fails on usize::MAX
2023-09-26 11:34:16 +02:00
Sylvestre Ledru
e0a4143a69
Merge pull request #4642 from sylvestre/fuzz-expr
...
Fuzz the expr command
2023-09-26 11:33:48 +02:00
renovate[bot]
2a97eab685
chore(deps): update rust crate exacl to 0.11.0
2023-09-26 07:45:23 +00:00
Sylvestre Ledru
265c258713
ranges: add unit tests to verify the parsing
...
To test them:
$ cargo test -p uucore --features ranges
2023-09-26 09:40:21 +02:00
Sylvestre Ledru
99120d32c1
cut: fail when the input == usize::MAX
2023-09-26 09:40:21 +02:00
Sylvestre Ledru
4038907de6
Merge pull request #5323 from cakebaker/run_gnu_test_sh_fix_issue_with_run_root
...
run-gnu-test.sh: accept "run-root" as first param
2023-09-26 09:39:54 +02:00
Daniel Hofstetter
22f72544a8
run-gnu-test.sh: accept "run-root" as first param
2023-09-26 09:33:14 +02:00
Sylvestre Ledru
5fde331c8f
Merge pull request #5318 from sylvestre/gnu-er
...
run-gnu-test.sh: show if we can't find the file
2023-09-25 15:39:26 +02:00
Sylvestre Ledru
9fcf4cd8e5
run-gnu-test.sh: show if we can't find the file
...
Otherwise, the error can be cryptic
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-09-25 14:41:42 +02:00
Terts Diepraam
45487d47b8
extract Base enum
2023-09-25 12:02:45 +02:00
Daniel Hofstetter
a3bf556259
Merge pull request #5317 from uutils/renovate/wild-2.x
...
fix(deps): update rust crate wild to 2.2
2023-09-25 09:20:55 +02:00
Daniel Hofstetter
e39c8d6776
Merge pull request #5319 from uutils/renovate/memmap2-0.x
...
chore(deps): update rust crate memmap2 to 0.8
2023-09-25 06:47:07 +02:00
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