Commit graph

7546 commits

Author SHA1 Message Date
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
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
ndd7xv
298f73f778 env: add program signal messages 2022-04-03 20:01:12 +02:00
Sylvestre Ledru
a219d9e355
Merge pull request #3353 from sylvestre/install
install: support of `-d dir/.` to match GNU's
2022-04-03 19:31:48 +02:00
Sylvestre Ledru
3236daabf2
Merge pull request #3356 from sylvestre/rm
rm: rename none by --interactive=never to fix ../gnu/tests/rm/i-never.sh
2022-04-03 19:31:17 +02:00
Sylvestre Ledru
74a348161e install: add tests to test with multiple directories
to please @calixteman
2022-04-03 16:47:06 +02:00
Sylvestre Ledru
c00a277448 mkdir: also use the dir_strip_dot_for_creation function 2022-04-03 16:47:06 +02:00
Sylvestre Ledru
845b2294e1 create a function dir_strip_dot_for_creation to manage the /. issue 2022-04-03 16:47:06 +02:00
Sylvestre Ledru
2628f3ed60 install: support of -d dir/. to match GNU's 2022-04-03 16:47:06 +02:00
Terts Diepraam
56ef8c206c
Merge pull request #3351 from sylvestre/python-script
GNU: add a script to list the failing tests & document how to fix them
2022-04-03 13:18:19 +02:00
Sylvestre Ledru
1da0091d79
Merge pull request #3344 from uutils/dependabot/cargo/exacl-0.8.0
build(deps): bump exacl from 0.6.0 to 0.8.0
2022-04-03 12:50:01 +02:00
Sylvestre Ledru
7abcc11ca1
Merge pull request #3310 from uutils/dependabot/cargo/crossterm-0.23.1
build(deps): bump crossterm from 0.22.1 to 0.23.1
2022-04-03 12:49:52 +02:00
Sylvestre Ledru
7076cc084f
Use the more modern python string declaration 2022-04-03 11:10:39 +02:00
Sylvestre Ledru
950432e492
fix typo
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2022-04-03 11:09:45 +02:00
Sylvestre Ledru
02cc67c915 rm: rename none by --interactive=never to fix ../gnu/tests/rm/i-never.sh 2022-04-03 09:15:45 +02:00
Sylvestre Ledru
f633d52cb1 GNU: Document how to fix GNU tests 2022-04-03 00:15:22 +02:00
Sylvestre Ledru
46ceeed54c GNU: add a script to list the failing tests
and sort them by size: (the smaller, the easier to fix in general)
2022-04-03 00:15:18 +02:00
dependabot[bot]
fd84b97227 build(deps): bump crossterm from 0.22.1 to 0.23.1
Bumps [crossterm](https://github.com/crossterm-rs/crossterm) from 0.22.1 to 0.23.1.
- [Release notes](https://github.com/crossterm-rs/crossterm/releases)
- [Changelog](https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossterm-rs/crossterm/commits)

---
updated-dependencies:
- dependency-name: crossterm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 21:47:50 +02:00
dependabot[bot]
ee515b57c3 build(deps): bump lscolors from 0.7.1 to 0.9.0
Bumps [lscolors](https://github.com/sharkdp/lscolors) from 0.7.1 to 0.9.0.
- [Release notes](https://github.com/sharkdp/lscolors/releases)
- [Commits](https://github.com/sharkdp/lscolors/compare/v0.7.1...v0.9.0)

---
updated-dependencies:
- dependency-name: lscolors
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 21:47:15 +02:00
dependabot[bot]
e82ef6966e build(deps): bump exacl from 0.6.0 to 0.8.0
Bumps [exacl](https://github.com/byllyfish/exacl) from 0.6.0 to 0.8.0.
- [Release notes](https://github.com/byllyfish/exacl/releases)
- [Changelog](https://github.com/byllyfish/exacl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/byllyfish/exacl/compare/v0.6.0...v0.8.0)

---
updated-dependencies:
- dependency-name: exacl
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 21:46:57 +02:00
Sylvestre Ledru
7debdbbbaa
Merge pull request #3350 from tertsdiepraam/msrv-1.56
MSRV 1.56
2022-04-02 21:46:41 +02:00
Terts Diepraam
0fc667730d join: fix workaround for IntErrorKind
In Rust versions before 1.55, there was no enum for parse errors. With the bump of the MSRV to 1.56 we can simplify this.
2022-04-02 15:18:34 +02:00
Terts Diepraam
4701ea0c95 uucore: use split_once in canon_host 2022-04-02 15:18:34 +02:00
Terts Diepraam
3629421e17 Bump MSRV to 1.56 2022-04-02 15:18:34 +02:00
Sylvestre Ledru
33e3e0d741
Document how to install it easily 2022-04-02 14:21:16 +02:00
Terts Diepraam
db22b15faf
Merge pull request #3352 from tertsdiepraam/version-0.0.13
Version 0.0.13
2022-04-02 14:10:43 +02:00
Terts Diepraam
b7809bd889 version 0.0.13 2022-04-02 11:04:27 +02:00
Sylvestre Ledru
12ad0f0903
Fix clippy
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2022-04-02 09:54:11 +02:00
Sylvestre Ledru
ef8921044b
Merge pull request #3347 from cakebaker/fix_total_use_percentage
df: fix calculation of Use% in "total" row
2022-04-02 09:53:08 +02:00
Terts Diepraam
f00ec12e4f
Merge pull request #3345 from DevSabb/presume-input-pipe
head, tail: include presume-input-pipe parameter
2022-04-01 21:43:47 +02:00
Terts Diepraam
97be8403d3
Merge pull request #3348 from uutils/sylvestre-patch-1
GNU testsuite: also show the number of SKIP tests
2022-04-01 16:53:54 +02:00
Terts Diepraam
546dcf749f
Merge pull request #3346 from sylvestre/ln
ln: pass tests/ln/backup-1.sh  & improvement in the error messages
2022-04-01 12:37:25 +02:00
DevSabb
1eee2194a3 head, tail: include presume-input-pipe parameter 2022-04-01 11:55:33 +02:00
Sylvestre Ledru
87c224e978
GNU testsuite: also show the number of SKIP tests 2022-04-01 10:00:44 +02:00
Sylvestre Ledru
b3d87b088d ln: adjust the error messages 2022-04-01 09:25:35 +02:00
Daniel Hofstetter
bf69c63e09 df: Fix calculation of Use% in "total" row
Change formula from: "Used/Size * 100" to "Used/(Used + Avail) * 100".
This formula also works if "Used" and "Avail" do not add up to "Size",
which is the case if there are reserved disk blocks.
2022-04-01 08:25:30 +02:00
Sylvestre Ledru
676283ce93 ln: implement fixes for tests/ln/backup-1.sh
When doing
ln b b~
ln -f --b=simple a b

First, we create a backup of b
Then, we force the override of a => b but we make sure that the backup is
done.

So, we had a bug in the ordering of the actions.
we were first removing b. Therefore, losing the capability to do a backup of this.
2022-03-31 23:39:42 +02:00
Sylvestre Ledru
e553241750 ln: rustfmt the recent changes 2022-03-31 23:39:42 +02:00
Sylvestre Ledru
526370f922 ln: use the quote method instead of doing it by hand 2022-03-31 23:39:42 +02:00
Sylvestre Ledru
15ef76fcbf ln: when we get a failed to link, show which files 2022-03-31 23:39:42 +02:00
Roy Ivy III
bed7dc5a29 maint/CICD ~ (GnuTests) support local bespoke repo default branch 2022-03-31 23:39:11 +02:00
Roy Ivy III
8518fff0fd maint/CICD ~ (util) improve error reporting clarity 2022-03-31 23:32:51 +02:00
Roy Ivy III
a6e3564c5d fix/CICD ~ (GnuTests) be more precise about failing/passing tests 2022-03-31 23:32:28 +02:00