Sylvestre Ledru
f57eb0fdfa
Merge pull request #1993 from cbjadwani/master
...
uniq: Implement --group option
2021-04-05 22:33:04 +02:00
Sylvestre Ledru
7cdeb18dff
Merge pull request #2026 from tertsdiepraam/ls/hide_and_ignore
...
ls: --hide and --ignore
2021-04-05 22:31:23 +02:00
Yagiz Degirmenci
cbe07c93c6
cksum: add tests and fixtures ( #1923 )
2021-04-05 22:21:21 +02:00
Marvin Hofmann
9581fcf688
rm: add verbose output and trim multiple slashes ( #1988 )
...
* rm: add verbose output and trim multiple slashes
Uses the normalize_path used in cargo to strip duplicate slashes
With a link to a std rfc https://github.com/rust-lang/rfcs/issues/2208
This fixes https://github.com/uutils/coreutils/issues/1829
This also touches https://github.com/uutils/coreutils/issues/1768
but does not attempt to fully solve it
2021-04-05 22:18:47 +02:00
Sylvestre Ledru
8ee4055a9f
Merge pull request #2027 from drocco007/fold-variable-width-tabs
...
fold: variable width tabs, guard treating tab as whitespace
2021-04-05 22:14:15 +02:00
Sylvestre Ledru
9e0ac377a8
Merge pull request #2030 from reggaemuffin/test-coreutils
...
uucore: Start testing uucore
2021-04-05 22:14:01 +02:00
Jan Scheer
4dfbbecc26
relpath: refactor tests for #1982
2021-04-05 21:48:39 +02:00
ReggaeMuffin
196bfebc8b
uucore: add uucore testing to travis and cirrus
2021-04-05 16:27:26 +01:00
ReggaeMuffin
3bfb1afe5c
uucore: Start testing uucore
...
Before this change we never ran tests on uucore itself
meaning that is was not possible to test
functions of the shared core, only their usage
in the different binaries
This change adds running uucore to our ci, which will increase coverage for the few doctests that exist
and is extracted from #1988 where first tests for uucore will be introduced
2021-04-05 16:16:00 +01:00
Daniel Rocco
e5c61a28be
fold: variable width tabs, guard treating tab as whitespace
...
Treat tab chars as advancing to the next tab stop rather than having a fixed
8-column width.
Also treat tab as a whitespace split target only when splitting on word
boundaries.
2021-04-05 08:55:07 -04:00
Terts Diepraam
a50eae76a4
ls: some more tests for ignore & hide
2021-04-05 12:17:42 +02:00
Terts Diepraam
d68959d696
ls: update cargo.lock with globset
2021-04-05 10:12:23 +02:00
Terts Diepraam
5134348a11
ls: use globset instead of glob
2021-04-04 23:39:11 +02:00
Terts Diepraam
bbb27800c9
ls: fix windows tests and commit lock
2021-04-04 23:14:55 +02:00
Terts Diepraam
51770e6bee
ls: invalid pattern move from error to warning
2021-04-04 22:40:36 +02:00
Terts Diepraam
76308dbec9
ls: tests for invalid patterns for hide and ignore
2021-04-04 22:35:22 +02:00
Terts Diepraam
fa4272a19b
ls: --hide and --ignore
2021-04-04 19:19:56 +02:00
Sylvestre Ledru
bd8b129d9a
Merge pull request #2016 from tertsdiepraam/ls/control_characters
...
ls: show/hide control chars
2021-04-04 18:38:15 +02:00
Sylvestre Ledru
c196f4ae8b
Merge pull request #2023 from ycd/cut
...
cut: move to clap, add gnu like error messages + tests
2021-04-04 14:47:15 +02:00
Sylvestre Ledru
6bee31e8e8
Merge pull request #2021 from ycd/dirname
...
dirname: move to clap, write to stderr on errors
2021-04-04 14:45:37 +02:00
Sylvestre Ledru
477254243b
Merge pull request #2025 from drocco007/fold-newlines-and-coverage
...
fold: improve newline handling and test coverage
2021-04-04 14:44:54 +02:00
Chirag Jadwani
19c6a42de5
uniq: implement group option
2021-04-04 15:22:17 +05:30
Daniel Rocco
bad1df9c1b
fold: improve newline handling and test coverage
...
- refactor implementation for readability
- correct handling of files with no trailing newline and/or blank lines
2021-04-03 22:47:38 -04:00
Yagiz Degirmenci
f47345ec9b
cut: add gnu compatability to error messages
2021-04-03 20:55:10 +03:00
Yagiz Degirmenci
e84b60b7d5
cut: add display order
2021-04-03 20:30:28 +03:00
Yagiz Degirmenci
7e677b3e6c
cut: fix formatting, use constant values
2021-04-03 20:21:57 +03:00
Yagiz Degirmenci
cfc3d52be4
cut: move to clap
2021-04-03 20:19:30 +03:00
Yagiz Degirmenci
b940b2d79c
dirname: move to clap, simplify code
2021-04-03 18:24:39 +03:00
Sylvestre Ledru
20d071a482
Merge pull request #2019 from sylvestre/version-0.0.6
...
Version 0.0.6
2021-04-03 16:51:22 +02:00
Terts Diepraam
54e9cb09da
ls: add tests for --hide-control-chars
2021-04-03 16:44:12 +02:00
Sylvestre Ledru
2ac2b46271
Merge pull request #2018 from sylvestre/revert-cat
...
Fix bug #2017 - cat isn't working
2021-04-03 16:07:54 +02:00
Sylvestre Ledru
f37284129e
new release 0.0.6 to address the cat issue
2021-04-03 16:06:58 +02:00
Sylvestre Ledru
7750db4f8e
cat: add a trivial test
2021-04-03 16:06:57 +02:00
Sylvestre Ledru
a852574745
Fix bug #2017 - cat isn't working
...
Revert "cat: Improve performance on Linux (#1978 )"
This reverts commit 7a947cfe46
.
2021-04-03 15:50:59 +02:00
Terts Diepraam
9cb0fc2945
ls: forgot to push updated tests
2021-04-03 13:15:19 +02:00
Terts Diepraam
06bdc144d7
ls: show/hide control chars
2021-04-03 12:43:37 +02:00
Sylvestre Ledru
f1f15fdbfa
Merge pull request #2014 from sylvestre/version-0.0.5
...
new release 0.0.5
2021-04-03 11:37:49 +02:00
Sylvestre Ledru
ac031dffa4
new release 0.0.5
2021-04-03 10:30:07 +02:00
Sylvestre Ledru
949673948d
Merge pull request #2013 from sylvestre/make-github
...
GitHub action - Test the build target of the Makefile
2021-04-03 09:26:18 +02:00
Sylvestre Ledru
4d7ad77433
rustfmt the recent change
2021-04-02 23:31:22 +02:00
Sylvestre Ledru
f10de40ab8
refresh cargo.lock with recent updates
2021-04-02 23:30:24 +02:00
Sylvestre Ledru
2ef1b25d85
Create a new job to test make build
2021-04-02 23:30:24 +02:00
est31
14a49edd1c
Use Iterator::copied() in sieve.rs ( #1774 )
2021-04-02 23:30:07 +02:00
Jamie Quigley
31f5666727
more: add error message if the argument is a directory ( #1983 )
2021-04-02 22:34:02 +02:00
Sandro
9fbed0b07a
makefile: replace all uutils with coreutils ( #1815 )
...
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2021-04-02 22:18:31 +02:00
Sivachandran
9151410d08
csplit: move from getopts to clap ( #1995 )
2021-04-02 22:14:56 +02:00
Sylvestre Ledru
18c2083c61
Merge pull request #2010 from jurodr/install-improve-d
...
install: Fix behaviour of the '-d' flag
2021-04-02 21:53:49 +02:00
Juliana Rodrigueiro
97da14fcb2
install: Fix behaviour of the -d flag
...
The '-d' flag should create all ancestors (or components) of a
directory regardless of the presence of the "-D" flag.
From the man page:
-d, --directory
treat all arguments as directory names; create all components of the specified directories
With GNU:
$ install -v -d dir1/di2
install: creating directory 'dir1'
install: creating directory 'dir1/di2'
With this version:
$ ./target/release/install -v -d dir3/di4
install: dir3/di4: No such file or directory (os error 2)
install: dir3/di4: chmod failed with error No such file or directory (os error 2)
install: created directory 'dir3/di4'
Also, one of the unit tests misinterprets what a "component" is,
and hence was fixed.
2021-04-02 20:04:25 +01:00
Juliana Rodrigueiro
2a02f01fc2
install: Don't display success message when the dir was not created
...
Also don't run chmod when we just failed to create the directory.
Behaviour before this patch:
$ ./target/release/install -v -d dir1/dir2
install: dir1/dir2: Permission denied (os error 13)
install: dir1/dir2: chmod failed with error No such file or directory (os error 2)
install: created directory 'dir1/dir2'
2021-04-02 19:59:43 +01:00
Juliana Rodrigueiro
349c4f7af6
install: Make log message identical to GNU install
...
$ install -v -d dir1
install: creating directory 'dir1'
2021-04-02 19:59:43 +01:00