Commit graph

11150 commits

Author SHA1 Message Date
PGIII
252d01ac33
cp: fail when trying to copy to read only file on mac (#5261)
* cp: fail when trying to copy to read only file

* fix spelling error in macos.rs

* simplify permissions check

* add comment

* fix typo
2023-10-03 00:48:22 +02:00
Yury Zhytkou
c5a0aa92f8
split: implementing separator option (#5331)
* split: implementing separator option

* split: separator option - handle multiple update

* split: style

* split: separator tests

* split: separator tests - stdin in ci/cd

* split: tests - ci/cd stdin errors

* split: refactor based on feedback

* split: improve test coverage

* split: fix broken pipe error in tests with stdin

* split: fix for handle_multiple_separator_options

* split: comments

* split: refactor separator code

* split: changes based on feedback

* split: changes based on feedback
2023-10-03 00:42:46 +02:00
Yury Zhytkou
9f6a720582
Introducing DEVELOPMENT.md (#5209) 2023-10-02 21:46:00 +02:00
Daniel Hofstetter
ac5684dc8d
Merge pull request #5346 from uutils/renovate/bytecount-0.x
chore(deps): update rust crate bytecount to 0.6.4
2023-10-02 07:03:47 +02:00
renovate[bot]
d4220e9bb7
chore(deps): update rust crate bytecount to 0.6.4 2023-10-01 20:03:02 +00:00
Daniel Clarke
c27fcc4084
Update parse_datetime to 0.5.0 (#5313) 2023-10-01 18:01:46 +02:00
Daniel Hofstetter
3d015826b9
Merge pull request #5342 from sylvestre/ls-recursive
ls -R1: add a test to replicate GNU's recursive.sh
2023-10-01 17:56:29 +02:00
Sylvestre Ledru
7337cd5169 ls -R1: add a test to replicate GNU's recursive.sh 2023-10-01 17:03:57 +02:00
Sylvestre Ledru
3e90306067
Merge pull request #5340 from cakebaker/nl_fix_overflow
nl: defer showing "line number overflow" error
2023-09-30 19:03:38 +02:00
Daniel Hofstetter
e31fed26a5
Merge pull request #5339 from uutils/renovate/regex-1.x
chore(deps): update rust crate regex to 1.9.6
2023-09-30 17:49:58 +02:00
Daniel Hofstetter
7f876e4bdb
Merge pull request #5337 from sylvestre/fuzz3
fuzzing: remove some duplicated code + clippy fixes
2023-09-30 16:37:55 +02:00
Daniel Hofstetter
95ccc54d05 nl: defer showing "line number overflow" error 2023-09-30 15:35:05 +02:00
renovate[bot]
f92066cee2
chore(deps): update rust crate regex to 1.9.6 2023-09-30 13:25:14 +00:00
Daniel Hofstetter
bc7877b58c
Merge pull request #5124 from shinhs0506/seq-parse
seq: parse "infinity" and "-infinity"
2023-09-30 06:59:32 +02:00
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
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
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