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
Sylvestre Ledru
4934af0c3d
Merge pull request #2007 from drocco007/fold-preserve-blank-lines
...
fold: preserve blank lines
2021-04-02 20:00:05 +02:00
Sylvestre Ledru
a1b8996ef2
Merge pull request #2006 from reggaemuffin/fmt-1.40.0
...
chores: run `cargo +1.40.0 fmt`
2021-04-02 17:11:54 +02:00
Daniel Rocco
d12f96d9ca
fold: preserve blank lines
2021-04-02 10:14:11 -04:00
ReggaeMuffin
2eb32d845e
chores: run cargo +1.40.0 fmt
...
Apparently fmt from 1.40.0 is a bit more strict in some places
Let me know if this is worthwhile merging :)
2021-04-02 10:56:49 +01:00
Sylvestre Ledru
de6aa69259
Merge pull request #1997 from sylvestre/polish3
...
Rustfmt+clippy+cargo.lock update
2021-04-02 11:37:56 +02:00
Jan Scheer
4a6176855a
relpath: move from getops to clap ( #1939 ) ( #1990 )
...
* relpath: add tests
* relpath: move from getopts to clap
2021-04-02 09:55:57 +02:00
Sylvestre Ledru
8d2e4e4b71
Merge pull request #2000 from paulotten/issue1999
...
Consistency with GNU version of `du` when doing `du -h` on an empty file
2021-04-02 08:22:51 +02:00
Paul Otten
7859bf885f
Consistency with GNU version of du
when doing du -h
on an empty file
2021-04-01 19:42:43 -04:00
Paul Otten
7112182dbc
Consider device id when comparing files
2021-04-01 18:37:20 -04:00
Sylvestre Ledru
dcbcf01665
Fix some clippy warnings
2021-04-01 23:42:30 +02:00
Sylvestre Ledru
6734ce785d
rustfmt the recent changes
2021-04-01 23:25:37 +02:00
Sylvestre Ledru
9c2cd81b11
refresh cargo.lock with recent updates
2021-04-01 23:18:57 +02:00
paulotten
090d29496a
Issue #1622 port du
to windows ( #1788 )
...
* Issue #1622 port `du` to windows
* Attempt to support Rust 1.32
Old version was getting "attributes are not yet allowed on `if`
expressions" on Rust 1.32
* Less #[cfg]
* Less duplicate code.
I need the return and the semicolon after if otherwise the second #[cfg]
leads to unexpected token complilation error
* More accurate size on disk calculations for windows
* Expect the same output on windows as with WSL
* Better matches output from du on WSL
* In the absence of feedback I'm disabling these tests on Windows.
They require `ln`. Windows does not ship with this utility.
* Use the coreutils version of `ln` to test `du`
`fn ccmd` is courtesy of @Artoria2e5
* Look up inodes (file ids) on Windows
* One more #[cfg(windows)] to prevent unreachable statement warning on linux
2021-04-01 23:16:47 +02:00