Eli Youngs
e23219289a
Simplify test cases
2022-03-11 23:43:59 +01:00
Eli Youngs
2afa9cd1a0
printf - Update %g formatting to match GNU
2022-03-11 23:43:59 +01:00
jfinkels
ebd0c09549
util: use seq to enumerate integers ( #3239 )
...
Replace a bash loop for enumerating integers with a more concise use
of `seq` in `util/build-gnu.sh`.
2022-03-11 09:38:06 +01:00
Kartik Sharma
5c5f4ca6ad
df
: Adds support for mount path prefix matching and input path (#3161 )
...
* Adds support for mount path prefix matching and input path
canonicalization
- Sorts mount paths in reverse lexicographical order
- Canonicalize all paths and clear invalid paths
- Checking of mount path prefix matches input path
2022-03-11 09:36:34 +01:00
Sylvestre Ledru
1795272473
Merge pull request #3176 from jfinkels/df-output-columns-2
...
df: implement the --output command-line argument
2022-03-11 09:26:17 +01:00
Sylvestre Ledru
e8d1aebd9e
Merge pull request #3242 from jfinkels/multiple-clippy-fixes
...
Clippy fixes in multiple crates
2022-03-11 09:04:42 +01:00
Sylvestre Ledru
492c467361
Merge pull request #3240 from jfinkels/util-dont-replace-seq
...
util: remove replacement of seq in GNU tests
2022-03-11 09:03:36 +01:00
Jeffrey Finkelstein
77d92883c7
split: implement --line-bytes option
...
Implement the `--line-bytes` option to `split`. In this mode, the
program tries to write as many lines of the input as possible to each
chunk of output without exceeding a specified byte limit. The new
`LineBytesChunkWriter` struct represents this functionality.
2022-03-10 22:51:49 -05:00
Jeffrey Finkelstein
c0cd017706
tests: update test_df.rs to use --output argument
2022-03-10 22:50:15 -05:00
Jeffrey Finkelstein
ec048b3857
df: implement the --output command-line argument
...
Implement the `--output` command-line argument, which allows
specifying an exact sequence of columns to display in the output
table. For example,
$ df --output=source,fstype | head -n3
Filesystem Type
udev devtmpfs
tmpfs tmpfs
(The spacing does not exactly match the spacing of GNU `df` yet.)
Fixes #3057 .
2022-03-10 22:50:15 -05:00
Jeffrey Finkelstein
0b07ecdad2
df: use Options.columns field to control output
...
Replace the `Options.show_fs_type` and `Options.show_inode_instead`
fields with the more general `Options.columns`, a `Vec` of `Column`
variants representing the exact sequence of columns to display in the
output. This makes `Options` able to represent arbitrary output column
display configurations.
2022-03-10 22:50:15 -05:00
Jeffrey Finkelstein
b42168e9dc
Clippy fixes in multiple crates
2022-03-10 22:31:21 -05:00
Jeffrey Finkelstein
a5200efaac
util: remove replacement of seq in GNU tests
2022-03-10 18:51:26 -05:00
Sylvestre Ledru
2e8945ba7f
Merge pull request #3221 from uutils/dependabot/cargo/unicode-segmentation-1.9.0
...
build(deps): bump unicode-segmentation from 1.8.0 to 1.9.0
2022-03-10 00:32:13 +01:00
Sylvestre Ledru
08f40a102e
Merge pull request #3228 from uutils/dependabot/cargo/unindent-0.1.8
...
build(deps): bump unindent from 0.1.7 to 0.1.8
2022-03-10 00:31:07 +01:00
Sylvestre Ledru
3b78023fcb
Merge pull request #3220 from uutils/dependabot/cargo/strum-0.24.0
...
build(deps): bump strum from 0.23.0 to 0.24.0
2022-03-10 00:30:29 +01:00
Sylvestre Ledru
2e860e7048
Merge pull request #3116 from nickd0/printf-round-fix
...
printf: fix printf sci notation round up
2022-03-09 19:47:52 +01:00
Sylvestre Ledru
3955354b3a
timeout: add a test for empty arg
2022-03-09 19:45:43 +01:00
dependabot[bot]
fc4f1d869e
build(deps): bump strum from 0.23.0 to 0.24.0
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 19:45:40 +01:00
dependabot[bot]
b4ee7f84fa
build(deps): bump unicode-segmentation from 1.8.0 to 1.9.0
...
Bumps [unicode-segmentation](https://github.com/unicode-rs/unicode-segmentation ) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/unicode-rs/unicode-segmentation/releases )
- [Commits](https://github.com/unicode-rs/unicode-segmentation/commits )
---
updated-dependencies:
- dependency-name: unicode-segmentation
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 19:45:35 +01:00
dependabot[bot]
bd04e0f92f
build(deps): bump unindent from 0.1.7 to 0.1.8
...
Bumps [unindent](https://github.com/dtolnay/indoc ) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/0.1.7...0.1.8 )
---
updated-dependencies:
- dependency-name: unindent
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 19:45:22 +01:00
Sylvestre Ledru
dfcba58c82
Merge pull request #3231 from sylvestre/cargo-lock
...
Various CI changes to unbreak the CI
2022-03-09 19:44:47 +01:00
Sylvestre Ledru
a22709aedd
CI: Disable Windows job i686-pc-windows-gnu
...
Fails with:
error: linker `i686-w64-mingw32-gcc` not found
And the Windows GNU is covered by x86_64-pc-windows-gnu anyway
2022-03-08 22:57:32 +01:00
Sylvestre Ledru
9f5fad1e38
add a job to build with rust nightly
2022-03-08 22:57:32 +01:00
Sylvestre Ledru
2a48234c12
add a job to build with rust stable
2022-03-08 22:57:32 +01:00
Sylvestre Ledru
e3649e33c5
remove old comment
2022-03-08 22:57:32 +01:00
Sylvestre Ledru
f896834c77
Use min rust version as default
2022-03-08 22:57:28 +01:00
Sylvestre Ledru
b43db8b552
Merge pull request #3230 from cakebaker/ticket_3208_2nd_attempt
...
df: always round up usage percentage (#3208 )
2022-03-08 19:37:44 +01:00
Daniel Hofstetter
3317fb9924
df: always round up usage percentage ( #3208 )
2022-03-08 15:13:05 +01:00
Justin Tracey
687dcaef9f
users and who: ignore failing tests for now
2022-03-07 12:32:07 -05:00
Justin Tracey
644c99ed2e
pinky: simplify and debug printing files
2022-03-07 12:32:07 -05:00
Justin Tracey
f52f655934
pinky: improve tests
2022-03-07 12:32:07 -05:00
Justin Tracey
9430a9f355
pinky: fix off-by-one in GECOS parsing
2022-03-07 12:32:07 -05:00
Sylvestre Ledru
37a0a74c19
Merge pull request #3033 from water-ghosts/cp-lb
...
cp: Create backup before hardlink
2022-03-07 08:18:36 +01:00
Sylvestre Ledru
76cb746aca
Merge pull request #3191 from jfinkels/df-block-size-heading
...
df: fix block size header for multiples of 1024
2022-03-07 08:09:03 +01:00
Sylvestre Ledru
d3dc8c8283
Merge pull request #3223 from uutils/dependabot/cargo/memmap2-0.5.3
...
build(deps): bump memmap2 from 0.5.2 to 0.5.3
2022-03-07 07:04:56 +01:00
Sylvestre Ledru
858a38c815
Merge pull request #3222 from uutils/dependabot/cargo/once_cell-1.10.0
...
build(deps): bump once_cell from 1.9.0 to 1.10.0
2022-03-07 07:04:15 +01:00
Sylvestre Ledru
5de17bb22d
Merge pull request #3225 from jfinkels/build-gnu-remove-workarounds
...
util: remove some workarounds for GNU tests
2022-03-07 07:02:39 +01:00
Sylvestre Ledru
7b68cb3f19
Merge pull request #3224 from uutils/dependabot/cargo/ouroboros-0.14.2
...
build(deps): bump ouroboros from 0.10.1 to 0.14.2
2022-03-07 07:01:40 +01:00
Nick Donald
a74ffac19e
printf: fix printf sci notation round up
2022-03-07 07:01:21 +01:00
Jeffrey Finkelstein
31c7f09630
util: remove some workarounds for GNU tests
2022-03-06 22:57:10 -05:00
dependabot[bot]
1c469ec6c5
build(deps): bump ouroboros from 0.10.1 to 0.14.2
...
Bumps [ouroboros](https://github.com/joshua-maros/ouroboros ) from 0.10.1 to 0.14.2.
- [Release notes](https://github.com/joshua-maros/ouroboros/releases )
- [Commits](https://github.com/joshua-maros/ouroboros/commits/0.14.2 )
---
updated-dependencies:
- dependency-name: ouroboros
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-06 22:36:00 +00:00
dependabot[bot]
86884131b7
build(deps): bump memmap2 from 0.5.2 to 0.5.3
...
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases )
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.2...v0.5.3 )
---
updated-dependencies:
- dependency-name: memmap2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-06 22:35:47 +00:00
dependabot[bot]
2e50eade7f
build(deps): bump once_cell from 1.9.0 to 1.10.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-06 22:35:33 +00:00
Sylvestre Ledru
b85cc90586
Fix yaml syntax
2022-03-06 23:33:22 +01:00
Sylvestre Ledru
dfb794d37c
Run dependabot to update deps
2022-03-06 23:32:12 +01:00
Sylvestre Ledru
9113594951
Merge pull request #3206 from 353fc443/timeout-empty-string
...
timeout: avoid panicking for empty string
2022-03-06 23:02:46 +01:00
Sylvestre Ledru
b9953eb883
Merge pull request #3122 from xxyzz/chmod
...
chmod: replace walkdir with std::fs
2022-03-06 23:01:50 +01:00
Devin Gunay
103dffc12e
touch: implement -
( #3158 )
2022-03-06 23:00:42 +01:00
Sylvestre Ledru
90cc2bff6a
Update of the license as many others contributed
2022-03-06 22:15:49 +01:00