Commit graph

2654 commits

Author SHA1 Message Date
Daniel Hofstetter 20b1f11daa nl: add test for "--number-separator"
and replace "match" with "if let"
2023-07-12 15:25:02 +02:00
Daniel Hofstetter 826adc62aa nl: show error if --number-width is zero
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-07-11 17:45:53 +02:00
Daniel Hofstetter cb50208909 nl: use value parser for "--number-format" 2023-07-10 11:20:37 +02:00
John Shin 4db5a60667 ls: add back version cmp test 2023-07-09 15:30:56 -07:00
Daniel Hofstetter f8a955266e
Merge pull request #4750 from NikolaiSch/seq-panic-fix
fix: seq panic on no arguments #4749
2023-07-09 14:19:07 +02:00
Daniel Hofstetter 0b37b63ea3
Merge pull request #5055 from yt2b/ls_literal_option
ls: --l should output the same as --literal
2023-07-09 14:07:24 +02:00
Sylvestre Ledru 78fd0efab9
Merge pull request #5013 from shinhs0506/core-version-cmp
uucore: leading zeros are ignored in version compare
2023-07-09 09:21:18 +02:00
Daniel Hofstetter 6f91371e61 touch: accept "modify" & "mtime" for --time arg 2023-07-08 16:13:35 +02:00
yt2b cf6f7856e4 ls: fix --l option 2023-07-08 10:43:20 +09:00
Daniel Hofstetter 98264e9cdf seq: add test for call without args 2023-07-05 15:51:23 +02:00
John Shin 844cbdc5a4 sort: add tests for stable and unstable sort 2023-07-05 10:05:52 +02:00
John Shin b42a5b8741 ls: update test result for version compare 2023-07-05 10:05:52 +02:00
Daniel Hofstetter 4a192e98d5
Merge pull request #5032 from sylvestre/split-fail
split: reject some invalid values
2023-07-05 07:04:22 +02:00
Daniel Hofstetter fee5225cb6 nl: make --no-renumber a flag 2023-07-04 10:37:10 +02:00
Sylvestre Ledru d033db3573 split: reject some invalid values
Matches what is done in tests/split/fail.sh
(still doesn't work)
2023-07-03 22:57:37 +02:00
Sylvestre Ledru 6e3ab23183
Merge pull request #5017 from cakebaker/df_disable_some_tests_on_windows
df: disable failing tests on Windows
2023-07-03 16:27:00 +02:00
Daniel Hofstetter 11b098fce1
Merge pull request #5028 from sylvestre/cp-multiple
cp: allow multiple usages of -R - Closes: #5027
2023-07-03 16:09:45 +02:00
Sylvestre Ledru e491bbdbed cp: allow multiple usages of -R/-r Closes: #5027
works for all other rm args
2023-07-03 14:19:45 +02:00
Sylvestre Ledru 7a7842b5b8
Merge pull request #4756 from Joining7943/tail-refactor-and-fix-input
`tail`: Refactor `paths::Input::from` and `Settings::inputs`
2023-07-03 14:09:57 +02:00
Daniel Hofstetter ba509a1489 cp: use mkdir_all() instead of mkdir() in test 2023-07-03 09:24:37 +02:00
sbentmar 42bf580f13
numfmt: add --invalid option (#4249)
* numfmt: add invalid option

* numfmt: return code 0 if ignore or warn

* numfmt: implement all --invalid modes

* numfmt: validate stdout and stderr

* numfmt: remove unnecessary code

* numfmt: apply formatting

* numfmt: fix clippy issues

* numfmt: fix failing test cases

* numfmt: fix formatting

* numfmt: fix bug when handling broken pipe

* numfmt: fix bug where extra newline was added

* numfmt: add test cases for edge cases

* numfmt: simplify error handling

* numfmt: remove redundant if

* numfmt: add newline between functions

* numfmt: fix failing test cases

* numfmt: add support for arg numbers using --invalid

* numfmt: simplify error handling in value handlers

* numfmt: fix merge conflict and align prints

* numfmt: fix clippy suggestion

* numfmt: replace "valid" with "invalid" in tests

* numfmt: move INVALID to respect alph. order

* numfmt: move printlns outside of match to avoid duplication

Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>

* numfmt: remove empty line

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-07-01 17:08:12 +02:00
Daniel Hofstetter a145798594
Merge pull request #4960 from granquet/ls_LZ
ls: force fetching metadata when called with -L -Z
2023-07-01 15:24:37 +02:00
Daniel Hofstetter c524ec4a9f
Merge pull request #4950 from Ideflop/more_implement_arguments_plain_and_from_line
More implement arguments plain and from line
2023-07-01 14:18:54 +02:00
Daniel Hofstetter 5b18c53c9d
Merge pull request #4999 from sylvestre/mv-backup-src
mv: add the check with --b=simple and when the source is a backup
2023-06-29 13:19:40 +02:00
Sylvestre Ledru 682e0e3750
Merge pull request #5012 from cakebaker/seq_rename_widths_to_equal_width
seq: rename "--widths" to "--equal-width"
2023-06-28 23:24:47 +02:00
Sylvestre Ledru 40c598852b mv: add the check with --b=simple and when the source is a backup 2023-06-28 23:11:28 +02:00
Daniel Hofstetter 2d76a3b88e df: disable failing tests on Windows 2023-06-28 14:43:35 +02:00
Daniel Hofstetter 732dbb3f12 cp: fix "unused variable" warning on Windows 2023-06-27 16:46:50 +02:00
Daniel Hofstetter c99d81a05b du: fix "unused import" warning on Windows 2023-06-27 15:05:27 +02:00
Daniel Hofstetter 01f70768d9 cp: fix "unused variable" warnings on Windows 2023-06-27 14:57:06 +02:00
Ideflop c4c3a354f8 tests/more: test argument --from-line 2023-06-26 21:57:52 +02:00
Ideflop 479340306e more: implement arguments -u/--plain and -F/--from-line 2023-06-26 21:57:45 +02:00
Daniel Hofstetter c05dbfa3b4 seq: rename "--widths" to "--equal-width"
for compatibility with GNU seq
2023-06-26 16:21:59 +02:00
Terts Diepraam 873c6c36f7
Merge branch 'main' into ls_LZ 2023-06-26 15:52:52 +02:00
Daniel Hofstetter 9149409065
Merge pull request #4991 from shinhs0506/du_apparent
du: directories have apparent size of 0
2023-06-26 14:58:40 +02:00
Guillaume Ranquet 80c7ed9732 ls: force fetching metadata when called with -L -Z
The metadata are not used but it permits to check the symlink is valid.
We then return 1 on invalid symlinks when ls is invoked with ls -L -Z

Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
2023-06-26 14:46:56 +02:00
John Shin b34e7f7bf6 du: directories have apparent size of 0 2023-06-25 15:56:57 -07:00
Sylvestre Ledru ddcdda44db Remove the auto capitalization of error message 2023-06-25 00:18:33 +02:00
Daniel Hofstetter a18bf4b073
Merge pull request #4987 from sylvestre/help-version-getopt
Make tests/help/help-version-getopt.sh pass
2023-06-21 09:30:53 +02:00
Sylvestre Ledru 8debc96eeb
Merge pull request #4983 from TheDcoder/parse-hex
od: fix parsing of hex input ending with `E`
2023-06-20 22:55:32 +02:00
Sylvestre Ledru bf7f3783d1 yes: allow --version
Test: tests/help/help-version-getopt.sh
2023-06-19 19:10:56 +02:00
Damon Harris b7154a80e1 od: fix parsing of hex input ending with E 2023-06-18 21:02:39 +05:30
Kostiantyn Hryshchuk 7306be6e58 fixed shred -u for windows
fixed shred panic on windows
2023-06-18 17:12:10 +02:00
John Shin 47d0ac4a42 sync: fix error msg 2023-06-17 19:50:47 -07:00
Rayhan Faizel 269ffc12b4 tests/mv: add tests to check for copying symlinks onto hardlinks to symlink 2023-06-12 23:49:28 +05:30
Rayhan Faizel 6bc15aac99 tests/mv: Test for particular edge cases when handling symlink files 2023-06-10 18:32:41 +05:30
Daniel Hofstetter 3caa2c0d8f mkdir: rename var "scene2" -> "scene" in test 2023-06-07 10:44:11 +02:00
Daniel Hofstetter 750eacc10c mkdir: remove TEST_DIR<X> consts in tests 2023-06-07 10:42:01 +02:00
Daniel Hofstetter 0128198a99
Merge pull request #4954 from Skryptonyte/ls_sortwidth
ls: Implement new sort option --sort=width
2023-06-06 18:46:54 +02:00
Daniel Hofstetter c26396087f
ls: add words to spell-checker:ignore 2023-06-06 17:44:04 +02:00