Daniel Hofstetter
0794d1338d
ls: fix test which fails if /tmp uses tmpfs
2023-09-22 10:43:23 +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
Sylvestre Ledru
37ee889003
ls -l: show an error when symlink not readable
...
switching to match and handle the error
Will help with tests/ls/stat-failed.sh
2023-09-15 22:34:17 +02:00
Daniel Hofstetter
39a0e92a91
Merge pull request #5255 from granquet/split_filter_broken_pipe
...
split: catch broken pipe error for round robin strategy
2023-09-13 14:08:45 +02:00
Daniel Hofstetter
aa7b39ae49
split: fix formatting
2023-09-13 10:45:38 +02:00
Guillaume Ranquet
d4217c5a12
split: catch broken pipe error for round robin strategy
...
The broken pipe error is not handled in the case of the round robin
strategy (typically used with --filter).
Align to the other strategies to silence that error in that use case
too.
fixes #5191
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
2023-09-12 17:43:31 +02:00
Daniel Hofstetter
6ce80758d5
touch: fix deprecation warnings from chrono
...
datetime_from_str() has been deprecated
2023-09-12 15:08:21 +02:00
Sylvestre Ledru
80f8eb6724
Merge pull request #5252 from zhitkoff/split-gnu-test-fail.sh
...
split: implement remaining -n variants and pass GNU tests/split/fail.sh
2023-09-07 17:15:09 +02:00
zhitkoff
3f065eed8a
split: fixing test for 32bit
2023-09-06 21:04:01 -04:00
zhitkoff
8883f016d4
split: fix windows tests
2023-09-06 20:09:26 -04:00
zhitkoff
3be284e0d9
split: more test coverage
2023-09-06 19:49:26 -04:00
zhitkoff
fbf5ac4329
split: tests 32bit
2023-09-06 14:16:21 -04:00
zhitkoff
1669a92694
split: tests overflow
2023-09-06 14:02:08 -04:00
zhitkoff
4fd598e4d5
split: tests
2023-09-06 13:20:58 -04:00
zhitkoff
e378454a26
split: formatting
2023-09-06 13:15:35 -04:00
zhitkoff
d8a16a2351
split: tests
2023-09-06 12:42:49 -04:00
zhitkoff
a0a9ee6491
split: fixing tests for parse_size_max()
2023-09-05 18:42:16 -04:00
David Matos
8be6338da9
cp: Error out if cp only contains source
2023-09-05 23:35:14 +02:00
Yury Zhytkou
e0b000a3bc
Merge branch 'main' into split-gnu-test-fail.sh
2023-09-05 17:22:31 -04:00
Daniel Hofstetter
4992cb9b86
Use std::io::IsTerminal instead of is-terminal
2023-09-04 10:35:17 +02:00
Daniel Hofstetter
8920ac0123
split: fix clippy warning in test
2023-09-04 07:26:23 +02:00
zhitkoff
420965a3ab
prereq for fixing tests/split/fail.sh
2023-09-03 20:39:50 -04:00
Sylvestre Ledru
633ae06524
Merge pull request #5225 from tertsdiepraam/factor-short-circuit-write-error
...
`factor`: short circuit on write error, but not on parse error
2023-09-01 21:09:25 +02:00
zhitkoff
e597189be7
split: fixed windows test for invalid unicode args
2023-08-31 20:48:44 -04:00
zhitkoff
d2812cbbc3
split: disable windows test for invalid UTF8
2023-08-31 16:04:44 -04:00
zhitkoff
5bfe9b19ef
split: avoid using collect_lossy
+ test for invalid UTF8 arguments
2023-08-31 14:46:56 -04:00
zhitkoff
6f37b4b4cf
split: hyphenated values + tests
2023-08-30 19:29:57 -04:00
Terts Diepraam
9a67393c44
factor: short circuit on write error, but not on parse error
2023-08-30 18:51:29 +02:00
zhitkoff
7f905a3b8d
split: edge case for obs lines within combined shorts + test
2023-08-29 16:35:00 -04:00
zhitkoff
15c7170d20
split: fix for GNU Tests regression + tests
2023-08-29 15:49:47 -04:00
Terts Diepraam
93a54f36f3
hashsum: change debug to display format with --tag
2023-08-29 10:15:38 +02:00
zhitkoff
fa8d18b826
split: refactor obsolete lines
2023-08-28 18:24:21 -04:00
Yury Zhytkou
1eae064e5c
split: better handle numeric and hex suffixes, short and long, with and without values ( #5198 )
...
* split: better handle numeric and hex suffixes, short and long, with and without values
Fixes #5171
* refactoring with overrides_with_all() in args definitions
* fixed comments
* updated help on suffixes to match GNU
* comments
* refactor to remove value_parser()
* split: refactor suffix processing + updated tests
* split: minor formatting
2023-08-28 10:09:52 +02:00
zhitkoff
84d96f9d02
split: refactor for more common use case
2023-08-26 11:11:46 -04:00
Daniel Hofstetter
01b2834f2e
Fix clippy warnings with Rust 1.72.0
2023-08-25 13:22:02 +02:00
Terts Diepraam
c3f9e19a3b
all: normalize license notice in all *.rs files
2023-08-24 12:21:09 +02:00
Daniel Hofstetter
1b705ae07c
factor: simplify loop in test
2023-08-22 09:45:17 +02:00
Sylvestre Ledru
0b9c829bce
Merge pull request #5182 from sylvestre/clippy_
...
Fix some of the recent clippy warnings
2023-08-21 16:21:02 -04:00
Sylvestre Ledru
bf5b765cba
Remove the author copyright notices ( #5184 )
...
* Remove the author copyright notices
Rational:
* not maintained
* does not reflect reality
* don't provide any value (the info can be found in the git log)
* we don't have rules to update them
(ex: should you update it after one line, two lines, etc)
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-08-21 12:23:18 +02:00
Sylvestre Ledru
d8f28364f0
Merge pull request #5168 from cakebaker/chown_remove_duplication_in_tests
...
chown: remove some duplication in tests
2023-08-21 12:22:32 +02:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Sylvestre Ledru
7c9f4ba92a
Fix some clippy warnings
2023-08-21 08:41:40 +02:00
tommady
b5746f794c
date: fix panic when input will cause overflow ( #5160 )
...
* fix issue 5149
* fix clippy style issue
* fix spell issue
* address comment
* address comments
* fix cspell
2023-08-20 16:55:38 +02:00
Daniel Hofstetter
d604f709ce
nl: handle line number overflow
2023-08-19 07:16:06 +02:00
Terts Diepraam
f1978955ba
Merge pull request #5156 from cakebaker/nl_implement_try_from_for_numbering_style
...
nl: implement TryFrom<&str> for NumberingStyle
2023-08-18 23:10:32 +02:00
Daniel Hofstetter
8b9509a55b
chown: remove some duplication in tests
2023-08-18 16:11:11 +02:00
Bluelief
a7ab660a38
fmt: change test to ignore and fix test output
...
- fix test to get same result as GNU fmt
2023-08-15 00:43:32 +09:00
Bluelief
946e1bb2d1
fmt: fix panic on width argument
2023-08-14 22:47:21 +09:00
Daniel Hofstetter
d5ab7bbacd
nl: implement TryFrom<&str> for NumberingStyle
2023-08-13 14:09:15 +02:00
Daniel Hofstetter
08e21e183b
nl: re-add handling for -p/--no-renumber
2023-08-12 14:36:22 +02:00