electricboogie
c49f93c9af
Psuedo working extsort
2021-04-12 18:05:37 -05:00
Yagiz Degirmenci
3aee0dfa88
add dot
2021-04-12 22:52:17 +03:00
Yagiz Degirmenci
fbb2125812
doc: update CONTRIBUTING.md
2021-04-12 22:50:29 +03:00
electricboogie
e6c195a675
ExtSort
2021-04-12 14:24:22 -05:00
Reto Hablützel
a4253d1254
apply more clippy suggestions from nightly
2021-04-12 20:07:10 +02:00
Reto Hablützel
07e9c5896c
ignore strip_suffix until minimum rust version is 1.45
2021-04-12 19:53:47 +02:00
Reto Hablützel
d219b6e705
strip_suffix is not avaialble with rust 1.40
2021-04-12 19:50:23 +02:00
Reto Hablützel
d67560c37a
fix clippy for unix
2021-04-11 16:34:19 +02:00
Reto Hablützel
b465c34eef
fix ls
2021-04-11 16:16:38 +02:00
Reto Hablützel
75a76613e4
fix clippy in cp
2021-04-11 16:09:18 +02:00
Reto Hablützel
97d12d6e3c
fix trivial warnings without features
2021-04-11 16:05:25 +02:00
ReggaeMuffin
5f00a0f907
remove the unused imports
2021-04-11 10:49:52 +01:00
Sylvestre Ledru
c224b955da
Merge pull request #2011 from Gilnaa/master
...
Add some test utils needed for major test refactoring
2021-04-11 09:36:08 +02:00
Gilad Naaman
4695667c7c
Added sanity checks for test utils
2021-04-11 02:28:47 +03:00
Gilad Naaman
cd3dba2481
Added some tests utils for future refactoring
2021-04-11 02:27:16 +03:00
Gilad Naaman
81d42aa2b3
Fix some tests to not use CmdResult fields
2021-04-10 23:30:50 +03:00
electricboogie
c6021e10c2
Fix SemVer non version lines/empty line sorting with a test
2021-04-10 15:27:16 -05:00
Árni Dagur
eb4971e6f4
cat: Unrevert splice patch ( #2020 )
...
* cat: Unrevert splice patch
* cat: Add fifo test
* cat: Add tests for error cases
* cat: Add tests for character devices
* wc: Make sure we handle short splice writes
* cat: Fix tests for 1.40.0 compiler
* cat: Run rustfmt on test_cat.rs
* Run 'cargo +1.40.0 update'
2021-04-10 22:19:53 +02:00
Sylvestre Ledru
bf1944271c
remove .DS_Store
2021-04-10 21:57:03 +02:00
electricboogie
7133273725
Correct arg help value name for --parallel
2021-04-10 14:13:49 -05:00
electricboogie
9bcf752b0c
Confirm human numeric works as expected with whitespace with a test
2021-04-10 14:06:24 -05:00
electricboogie
77411f3fb5
Implement test for months whitespace fix
2021-04-10 13:36:57 -05:00
electricboogie
3c1c76444b
Merge branch 'master' of https://github.com/uutils/coreutils
2021-04-10 13:26:56 -05:00
Michael Debertol
69f4410a8a
sort: dedup using compare_by ( #2064 )
...
compare_by is the function used for sorting, we should use it for dedup
as well.
2021-04-10 19:49:10 +02:00
electricboogie
2d9f15d12c
Fix month parse for months with leading whitespace
2021-04-10 12:02:02 -05:00
electricboogie
843be9e149
Rebase
2021-04-10 09:06:14 -05:00
Michael Debertol
49c9d8c901
sort: implement -k and -t support ( #1996 )
...
* sort: implement basic -k and -t support
This allows to specify keys after the -k flag and a custom field
separator using -t.
Support for options for specific keys is still missing, and the -b flag
is not passed down correctly.
* sort: implement support for key options
* remove unstable feature use
* don't pipe in input when we expect a failure
* only tokenize when needed, remove a clone()
* improve comments
* fix clippy lints
* re-add test
* buffer writes to stdout
* fix ignore_non_printing
and make the test fail in case it is broken :)
* move attribute to the right position
* add more tests
* add my name to the copyright section
* disallow dead code
* move a comment
* re-add a loc
* use smallvec for a perf improvement in the common case
* add BENCHMARKING.md
* add ignore_case to benchmarks
2021-04-10 14:54:58 +02:00
Sylvestre Ledru
e1221ef3f8
Merge pull request #2036 from joppich/issue1930
...
stdbuf: move from getopts to clap
2021-04-10 11:58:01 +02:00
electricboogie
e5113ad00e
Sort: Various fixes and performance improvements ( #2057 )
...
* Various fixes and performance improvements
* fix a typo
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
2021-04-10 11:56:20 +02:00
Sivachandran
ee070028e4
install: implement stripping symbol table ( #2047 )
2021-04-10 11:53:29 +02:00
Nicolas Thery
698924a20a
unlink: move from getopts to clap ( #2052 ) ( #2058 )
2021-04-10 11:50:21 +02:00
Aleksandar Janicijevic
18191f9212
shred: Implemented --force option ( #2012 )
2021-04-10 10:41:59 +02:00
joppich
c54b5f2d82
stdbuf: move from getopts to clap
2021-04-10 00:39:12 +02:00
Sylvestre Ledru
a9209049bf
fix a typo
...
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
2021-04-09 22:18:52 +02:00
electricboogie
1253323027
Various fixes and performance improvements
2021-04-09 14:28:46 -05:00
Reto Hablützel
d51ca40986
allow ignoring stdin write errors in tests
...
* if we want to test an irregular scenario, ignoring errors caused by
writing to stdin of the command can be uselful.
* for example, when writing some text to stdin of cksum in a scenario
where it doesn't consume this input, the child process might have
exited before the text was written. therefore, this test sometimes
fails with a 'Broken pipe'.
2021-04-09 11:16:36 +02:00
Sylvestre Ledru
9ae4928b7b
Ignore a test ( #2053 )
...
* Disable chksum: test_arg_overrides_stdin
fails often with:
---- test_cksum::test_arg_overrides_stdin stdout ----
current_directory_resolved:
touch: /tmp/.tmpv9hydc/a
run: /target/x86_64-unknown-linux-gnu/debug/coreutils cksum a
thread 'test_cksum::test_arg_overrides_stdin' panicked at 'Broken pipe (os error 32)', tests/common/util.rs:742:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
* rustfmt the recent change
2021-04-09 10:14:41 +02:00
electricboogie
8474249e5f
Sort: Implement stable sort, ignore non-printing, month sort dedup, auto parallel sort through rayon, zero terminated sort, check silent ( #2008 )
2021-04-08 22:07:09 +02:00
Sylvestre Ledru
b26e12eaa4
Merge pull request #2050 from rivy/update.readme
...
README update revising initial build instructions
2021-04-08 08:59:11 +02:00
Roy Ivy III
8d7d1b0f35
docs/README ~ revise build instructions for binaries
2021-04-07 21:12:31 -05:00
Roy Ivy III
d0abe9e6c9
docs/README ~ fix spelling (words and exceptions)
2021-04-07 20:38:21 -05:00
Roy Ivy III
6551d29a6e
docs/README ~ fix markdown lint complaints (*disable* commands-show-output & no-duplicate-heading)
2021-04-07 20:38:15 -05:00
Roy Ivy III
bf81f93be3
docs/README ~ fix markdown lint complaints (fenced-code-language)
2021-04-07 20:38:09 -05:00
Roy Ivy III
a309c7cab0
docs/README ~ fix markdown lint complaints (blanks-around-fences)
2021-04-07 20:38:02 -05:00
Roy Ivy III
26937b5d69
docs/README ~ fix markdown lint complaints (heading-style)
2021-04-07 20:37:52 -05:00
Roy Ivy III
04235854fa
docs/README ~ fix markdown lint complaints (no-trailing-spaces)
2021-04-07 20:37:34 -05:00
Sylvestre Ledru
717b875b5d
Merge pull request #2046 from ricardoaiglesias/timeout-clap
...
timeout: Moved argument parsing to clap
2021-04-07 23:19:36 +02:00
Sylvestre Ledru
0f71bf9c33
Merge pull request #2048 from tertsdiepraam/ls/refacter_tests
...
ls: refactor tests
2021-04-07 23:16:46 +02:00
Sylvestre Ledru
ac43052cc5
Merge pull request #1602 from wishawa/master
...
ptx: Improve performance: remove N^2 loop and reduce repetitive regex compilations.
2021-04-07 23:14:23 +02:00
Terts Diepraam
c65483f4be
tests: improve docstrings a bit
2021-04-07 11:48:21 +02:00