Jeffrey Finkelstein
ab717ce370
df: implement the File column
...
Implement the "File" column in the `df` output table. Before this
commit, a blank entry appeared in the "File" column for each
row. After this commit, a "-" entry appears when `df` is run with no
positional arguments and the filename appears when run with positional
arguments. For example:
$ touch a b c && df --output=target,file a b c
Mounted on File
/ a
/ b
/ c
2022-03-27 13:17:36 -04:00
Sylvestre Ledru
e1f8893289
Merge pull request #3314 from jfinkels/timeout-return-125-invalid-args
...
timeout: return 125 on invalid time interval args
2022-03-27 18:28:56 +02:00
Jeffrey Finkelstein
b34685f8a5
timeout: return 125 on invalid time interval args
...
Exit with status 125 (indicating an error in `timeout` itself) when
the timeout duration is invalid or the "kill after" duration is
invalid.
2022-03-27 11:45:51 +02:00
Sylvestre Ledru
9a0ef9a81f
Merge pull request #3313 from jfinkels/timeout-kill-after-long-arg
...
timeout: support long form of --kill-after arg
2022-03-27 11:45:11 +02:00
Sylvestre Ledru
239998243f
Merge pull request #3316 from jfinkels/build-reduce-timeout-replacements
...
util: use uutils timeout in GNU tests
2022-03-27 11:44:39 +02:00
Sylvestre Ledru
c79d146dde
ls: add support for --quoting-style=shell-escape b --color=auto
2022-03-27 10:50:00 +02:00
Sylvestre Ledru
bbee22bb1c
ls: Add missing quote with --quoting-style=shell-escape
...
Should fix GNU: tests/ls/symlink-quote.sh
2022-03-27 10:50:00 +02:00
Jeffrey Finkelstein
c43ef8b704
timeout: support long form of --kill-after arg
...
Add support for the long form of the `--kill-after`
argument. Previously only the short form `-k` was supported.
2022-03-26 20:20:30 -04:00
Sylvestre Ledru
98376d8fd5
Merge pull request #3311 from uutils/mkdir2
...
mkdir: gnu compat: add support of mkdir -p foo/.
2022-03-27 00:15:05 +01:00
Jeffrey Finkelstein
5f8567695c
util: use uutils timeout in GNU tests
...
Remove the substitution of uutils `timeout` with GNU `timeout` before
running the GNU test suite. Some of these replacements were not
actually operational because the regex was not appropriate (for
example, the test file had `timeout 10` but the regex would only match
`timeout [0-9]`). Others no longer need to be used because the uutils
version of `timeout` works well enough now to terminate a process
within the given period of time.
2022-03-26 19:35:19 +01:00
Sylvestre Ledru
3e39209078
Merge pull request #3315 from jfinkels/uucore-parse-time-uppercase
...
uucore: no uppercase suffixes in parse_time
2022-03-26 19:17:32 +01:00
Jeffrey Finkelstein
6a8ce447b7
uucore: no uppercase suffixes in parse_time
...
Disallow uppercase unit suffixes "S", "M", "H", and "D" in
`uucore::parse_time::from_str()` to match the behavior of GNU `sleep`
and `timeout`.
2022-03-26 10:39:00 -04:00
Sylvestre Ledru
5fba2a78da
Merge pull request #3293 from jfinkels/dd-conv-block-helper-remove-input
...
dd: create ConversionMode to simplify conversion, blocking, and unblocking
2022-03-26 10:10:48 +01:00
Sylvestre Ledru
2e476cfebd
Merge pull request #3307 from uutils/dependabot/cargo/redox_syscall-0.2.12
...
build(deps): bump redox_syscall from 0.2.10 to 0.2.12
2022-03-26 10:10:31 +01:00
Sylvestre Ledru
fbb64b9c5c
mkdir: gnu compat: add support of mkdir -p foo/.
2022-03-25 21:35:27 +01:00
dependabot[bot]
f6981ba3f0
build(deps): bump redox_syscall from 0.2.10 to 0.2.12
...
Bumps redox_syscall from 0.2.10 to 0.2.12.
---
updated-dependencies:
- dependency-name: redox_syscall
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 20:02:46 +00:00
Jeffrey Finkelstein
f856bfc479
dd: move ConversionMode parsing to parseargs mod.
...
Move the code for parsing the `ConversionMode` to use up to the
`parseargs` module. This location makes more sense for it because the
conversion mode can be determined entirely from the command-line
arguments at the time of parsing just like the other parameters. Using
an enum for this purpose also eliminates the amount of code we need
later on.
2022-03-25 20:56:38 +01:00
Jeffrey Finkelstein
b98bccf9cc
dd: move ConversionMode parsing to dd.rs
...
Move parsing of the `ConversionMode` outside of
`conv_block_unblock_helper()` and up to the code that calls it.
2022-03-25 20:56:38 +01:00
Jeffrey Finkelstein
bd626df70e
dd: replace cascading if/else if with enum match
...
Replace a cascading `if/else if` chain in `conv_block_unblock_helper()`
with a match statement on a new enum, `ConversionMode`, that enumerates
the various modes in which `dd` can operate.
2022-03-25 20:56:38 +01:00
Terts Diepraam
6b8ab37ad9
Merge pull request #3308 from sylvestre/ci
...
CI: Force the rustc nightly version to fix issue 3305
2022-03-25 20:36:56 +01:00
Sylvestre Ledru
9e86e56668
Remove a comment to retrigger the CI
2022-03-25 15:28:45 +01:00
Sylvestre Ledru
22e06c2458
also fix coverage
2022-03-25 12:06:41 +01:00
Sylvestre Ledru
c4d89ab146
ci try to fix the error ?
2022-03-25 11:01:05 +01:00
Sylvestre Ledru
2acac0d558
CI: Force the rustc nightly version to fix issue 3305
2022-03-25 09:41:01 +01:00
Sylvestre Ledru
0ffc162daa
Merge pull request #3301 from sylvestre/assert_eq
...
use assert_eq instead of x == y. Better output in case of error
2022-03-24 08:18:08 +01:00
Sylvestre Ledru
fe648b2666
Merge pull request #3297 from jfinkels/timeout-invalid-signal
...
timeout: produce usage error on invalid signal
2022-03-23 21:05:34 +01:00
Sylvestre Ledru
33c49666c3
nproc: make tests/misc/nproc-override.sh pass by implementing OMP_NUM_THREADS=X,Y,Z ( #3296 )
...
+ nproc tests: use assert_eq when comparing the two values
Co-authored-by: jfinkels <jfinkels@users.noreply.github.com>
2022-03-23 12:12:54 +01:00
Sylvestre Ledru
ba83e5e901
use assert_eq instead of x == y. Better output in case of error
2022-03-23 10:41:31 +01:00
Jeffrey Finkelstein
760a15aa74
timeout: produce usage error on invalid signal
...
Produce a usage error on an invalid signal argument. For example,
$ timeout --signal=invalid 1 sleep 0
timeout: 'invalid': invalid signal
Try 'timeout --help' for more information.
2022-03-23 08:39:55 +01:00
Sylvestre Ledru
1cd72a621a
Merge pull request #3299 from jfinkels/clippy-fixes-2022-03-22
...
clippy fixes from nightly rust
2022-03-23 08:39:20 +01:00
Jeffrey Finkelstein
e357d2650c
clippy fixes from nightly rust
2022-03-22 21:44:33 -04:00
Terts Diepraam
fc1fa8d1f7
Merge pull request #3027 from shoriminimoe/2986-cp
...
cp: only allow directory for -t
2022-03-22 23:08:54 +01:00
Sylvestre Ledru
291b889d66
Merge pull request #3256 from chordtoll/iseek-oseek
...
dd: implement iseek + oseek flags
2022-03-22 20:31:05 +01:00
Sylvestre Ledru
c19a8feb22
Merge pull request #3291 from devnexen/illumos_build_fix
...
fsext solaris/illumos build fix
2022-03-22 20:07:47 +01:00
Sylvestre Ledru
8044981df0
Merge pull request #3289 from uutils/dependabot/cargo/ouroboros-0.15.0
...
build(deps): bump ouroboros from 0.14.2 to 0.15.0
2022-03-22 08:08:13 +01:00
Sylvestre Ledru
b50d96e193
Merge pull request #3292 from jfinkels/uucore-parse-time-negative-interval
...
uucore: error on negative interval in parse_time::from_str()
2022-03-22 08:07:58 +01:00
Jeffrey Finkelstein
f4af226820
uucore: error on negative interval in parse_time
...
Return an error when a negative interval is provided as the argument
to `uucore::parse_time::from_str()`, since a `Duration` should only be
non-negative.
2022-03-21 21:11:31 -04:00
David Carlier
d8102503bf
fsext solaris/illumos build fix
2022-03-21 23:20:22 +00:00
Terts Diepraam
5eeac5881a
Merge pull request #3285 from sylvestre/ls_aA
...
ls: when -aA are provided, the order matters
2022-03-21 18:14:13 +01:00
Terts Diepraam
e9a6cf043f
Merge pull request #3286 from sylvestre/nproc-2
...
nproc: add the full support of OMP_THREAD_LIMIT
2022-03-21 18:11:41 +01:00
dependabot[bot]
2024cc37e6
build(deps): bump ouroboros from 0.14.2 to 0.15.0
...
Bumps [ouroboros](https://github.com/joshua-maros/ouroboros ) from 0.14.2 to 0.15.0.
- [Release notes](https://github.com/joshua-maros/ouroboros/releases )
- [Commits](https://github.com/joshua-maros/ouroboros/compare/0.14.2...0.15.0 )
---
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-21 16:50:55 +00:00
Sylvestre Ledru
7963287c6c
Merge pull request #3282 from uutils/dependabot/cargo/libc-0.2.121
...
build(deps): bump libc from 0.2.113 to 0.2.121
2022-03-21 17:49:11 +01:00
Sylvestre Ledru
4942e519fa
nproc: add the full support of OMP_THREAD_LIMIT
2022-03-21 13:46:22 +01:00
Sylvestre Ledru
187bddb6af
ls: support multiple -a or -A
2022-03-21 13:32:23 +01:00
Sylvestre Ledru
435c983b36
Merge pull request #3087 from water-ghosts/printf-general
...
printf - Update %g formatting to match GNU
2022-03-21 13:23:28 +01:00
Sylvestre Ledru
ce28aa8b8a
Merge pull request #3287 from cakebaker/missing_spaces
...
sort: add two missing spaces in help texts
2022-03-21 13:14:28 +01:00
Sylvestre Ledru
d3e2ad2d50
Merge pull request #3283 from jfinkels/timeout-usage-error
...
timeout: give usage error on invalid time interval
2022-03-21 09:27:58 +01:00
Sylvestre Ledru
0bc9a05846
Merge pull request #3284 from jfinkels/sleep-usage-error
...
sleep: give usage error on invalid time interval
2022-03-21 09:27:47 +01:00
Sylvestre Ledru
3009c73e9c
ls -aA: Add a comment
2022-03-21 09:13:56 +01:00
Daniel Hofstetter
a1d6a8f17a
sort: add two missing spaces in help texts
2022-03-21 09:13:33 +01:00