Commit graph

7820 commits

Author SHA1 Message Date
Sylvestre Ledru
5c3580fb04
Merge pull request #3390 from sylvestre/mv-test
mv: move the tests in a separate function
2022-04-12 22:36:24 +02:00
Sylvestre Ledru
57b8caf1d0 mv: move the tests in a separate function 2022-04-12 20:39:00 +02:00
Sylvestre Ledru
0f59af22d5
Merge pull request #3383 from sudosmile/main
mv: add OverwriteMode match in specific case
2022-04-12 20:28:07 +02:00
Daniel Hofstetter
07317f3d9f df: remove unnecessary return of Result 2022-04-12 16:40:48 +02:00
Sylvestre Ledru
079f00d104
Merge pull request #3365 from cakebaker/ticket_3349
df: fix too low values in I* columns
2022-04-12 14:38:37 +02:00
Daniel Hofstetter
d2289d268a df: fix too low values in I* columns
Fixes #3349
2022-04-12 10:19:41 +02:00
Ashe Leclerc
76a74c65ab tests/mv: test interactive mvError
test -i flag in case of overwriting a non-directory with a directory
2022-04-12 09:28:11 +02:00
Ashe Leclerc
1d76c96570 mv: add OverwriteMode match in specific case
Check OverwriteMode and act depending on its value, specifically in the
the case of overwriting a non-directory with a directory(#3337)
2022-04-12 09:28:11 +02:00
Sylvestre Ledru
f114d63b4e
Merge pull request #3376 from jfinkels/df-error-on-nonexistent-files
df: show error when file argument does not exist
2022-04-12 09:27:59 +02:00
Sylvestre Ledru
d8da10d4e1
Merge pull request #3378 from tertsdiepraam/rust-1.60-clippy
Clippy: Don't use `from_*` method names that take `self`
2022-04-12 09:26:28 +02:00
Sylvestre Ledru
6a818454ce
Merge pull request #3384 from marv/makefile-improvements
build: Remove MANDIR & introduce DATAROOTDIR
2022-04-12 09:25:15 +02:00
Terts Diepraam
af32f7a117 Dont use from_* method names that take self
This was reported as an error in Clippy 1.60.
2022-04-11 22:50:36 +02:00
Sylvestre Ledru
8b719a8591
du: add support for --exclude and --exclude-from (#3381)
* du: add support for --exclude and --exclude-from

And add an option --verbose (doesn't exist in GNU)
2022-04-11 22:50:01 +02:00
Sylvestre Ledru
9214249bdd
Merge pull request #3385 from tertsdiepraam/docs-platform-info
Docs: Fix the platform icons not showing up in some browsers
2022-04-11 17:23:36 +02:00
Terts Diepraam
f7d53889e8 Fix the platform icons not showing up in some browsers 2022-04-11 16:03:36 +02:00
Jeffrey Finkelstein
460bd67050 df: show error when file argument does not exist
For example:

    $ df not-a-file
    df: not-a-file: No such file or directory

Fixes #3373.
2022-04-10 22:22:18 -04:00
Jeffrey Finkelstein
c5413167e2 df: correct --total argument used in unit test
Add a missing dash to the `--total` argument applied in the
`test_df_output` test case. Before this commit, the argument `-total`
was treated as a path argument. After this commit, `--total` is
treated as a command-line option that causes the total file usage to
be displayed.
2022-04-10 22:22:18 -04:00
Sylvestre Ledru
cfc87b684c
Update GNUmakefile 2022-04-10 18:28:20 +02:00
Marvin Schmidt
b00357a19c make: Introduce DATAROOTDIR
This makes it easier to install binaries into an arch-dependent
directory (e.g. /usr/${host}/bin) while keeping arch-independent files
like the shell completions under /usr/share by specifying e.g.
PREFIX=/usr/${host} and DATAROOTDIR=/usr/share
2022-04-10 13:27:35 +02:00
Marvin Schmidt
66168bf06b make: Include PREFIX in BINDIR 2022-04-10 13:27:35 +02:00
Marvin Schmidt
79f1266017 make: Remove MANDIR
It's unused since commit 6cfed3bd ("make: no longer create INSTALLDIR_MAN")
2022-04-10 13:27:35 +02:00
Sylvestre Ledru
ddf067f188
Merge pull request #3382 from sylvestre/du-nox
du: Return non zero error code when dealing with permissions errors
2022-04-10 12:25:26 +02:00
Sylvestre Ledru
a2cefd9b52 du: Return non zero error code when dealing with permissions errors
Nd make the tests/du/no-x.sh & long-sloop.sh pass
2022-04-10 01:47:39 +02:00
Sylvestre Ledru
398ded6789
Merge pull request #3379 from jfinkels/tests-no-stdout-error-message
tests: print stdout in error msg for no_stdout()
2022-04-09 19:59:33 +02:00
Jeffrey Finkelstein
7192856da4 tests: print stdout in error msg for no_stdout()
Fix a bug in which the error message displayed when using
`CmdResult::no_stdout()` was incorrectly showing stderr when it should
have been showing stdout.
2022-04-09 12:44:24 -04:00
Sylvestre Ledru
d0aa9a9927
Merge pull request #3343 from uutils/dependabot/cargo/lscolors-0.9.0
build(deps): bump lscolors from 0.7.1 to 0.9.0
2022-04-09 09:29:25 +02:00
Sylvestre Ledru
53baecab49
Merge pull request #3280 from crazystylus/stat-fails-to-read-a-file-redirected-to-stdin
`stat`: Adds support to read a filename redirected to stdin
2022-04-09 09:11:48 +02:00
Sylvestre Ledru
a044086b70
Merge pull request #3374 from tertsdiepraam/docs-platform-info
docs: show supported platforms for each util
2022-04-08 09:19:15 +02:00
Terts Diepraam
3c09c747dd docs: show platforms for each util 2022-04-07 15:12:21 +02:00
Sylvestre Ledru
935bdd4210
Merge pull request #3368 from tertsdiepraam/msrv-1.56
Rust Edition 2021
2022-04-07 11:46:42 +02:00
Terts Diepraam
54b2fe700b fix regressed test due to lscolors update 2022-04-07 11:05:20 +02:00
Terts Diepraam
aae298f9a4 Don't pass features when testing individual utils in uucore 2022-04-06 23:23:47 +02:00
Terts Diepraam
5a3434161d
Merge pull request #3372 from sylvestre/usage-gnu
Make usage_vs_getopt.sh pass
2022-04-06 21:08:25 +02:00
Sylvestre Ledru
757b161164 match more the GNU behavior on error code 2022-04-06 13:59:44 +02:00
Terts Diepraam
31faf86cdb Don't provide features for testing individual utilities
With the Rust 2021 feature resolver, adding a feature like `--features=feat_os_unix` results in an error, because the individual crates do not have that feature.
2022-04-06 11:49:00 +02:00
Sylvestre Ledru
2e996e59f3 remaining-gnu-error.py: add missing slash 2022-04-06 11:03:27 +02:00
Sylvestre Ledru
465c1c1c9d remaining-gnu-error.py: simplify the code 2022-04-06 11:03:13 +02:00
Sylvestre Ledru
97c6f6ac49 Update of the build-gnu tool to fix usage_vs_getopt.sh 2022-04-06 09:35:12 +02:00
Sylvestre Ledru
d48e533a57 remaining-gnu-error.py: fix an error when mismatche for real 2022-04-06 09:24:20 +02:00
Sylvestre Ledru
bd95daf634 remaining-gnu-error.py: fix an error when mismatches 2022-04-06 09:17:50 +02:00
Kai Lüke
e894e40c56
hashsum: add --no-names option from official b3sum tool (#3361)
* hashsum: add --no-names option from official b3sum tool

The official b3sum tool has a --no-names option for only printing the
hashes, omitting the filenames. This is quite handy when used from
scripts because it spares the postprocessing with "cut" or "awk".
Since the installed b3sum symlink would also serve as a drop-in for the
official tool, the --no-names option is expected to exist for
compatibility.

Add a --no-names option not only for b3sum but for hashsum in general
(and maybe GNU coreutils will also feel inspired to add this option).

Closes https://github.com/uutils/coreutils/issues/3360
2022-04-06 09:09:37 +02:00
Sylvestre Ledru
bc7c9c1659
Merge pull request #3369 from cakebaker/ticket_3302
df: show error if same type is included & excluded
2022-04-06 09:08:38 +02:00
Jan Scheer
a9fa94824d
tail: switch from Notify 5.0.0-pre.13 to 5.0.0-pre.14 2022-04-05 22:19:25 +02:00
Daniel Hofstetter
876924f5d5 df: show error if same type is included & excluded
Fixes #3302
2022-04-05 14:21:32 +02:00
Terts Diepraam
18369dc0be all: use array intoiterator 2022-04-05 10:39:31 +02:00
Terts Diepraam
c6c936f529 all: remove explicit imports of TryFrom and TryInto
This is enabled by the changing the edition from 2018 to 2021
2022-04-05 10:39:31 +02:00
Terts Diepraam
af9f718936 Change edition to 2021 2022-04-05 10:39:31 +02:00
Sylvestre Ledru
5fbef7743b
Merge pull request #3367 from sylvestre/tty
tty: should not return 2 when --help is used
2022-04-05 08:02:28 +02:00
Terts Diepraam
945c66f2fd
Merge pull request #3290 from ndd7xv/env-signal-messages
env: add program signal messages
2022-04-05 00:00:07 +02:00
Sylvestre Ledru
cf722d7f0c tty: should not return 2 when --help is used
This is impacting
gnu/tests/misc/usage_vs_getopt.sh
2022-04-04 22:55:36 +02:00