Jan Scheer
d9cd28fab6
test_tail: add tests for --follow=name --disable-inotify
(polling)
2021-09-28 00:16:23 +02:00
Jan Scheer
5615ba9fe1
test_tail: add tests for --follow=name
2021-09-27 23:18:00 +02:00
Jan Scheer
c70b7a0501
tail: implement --follow=name
...
This implements `--follow=name` for create/move/delete events.
Under the hood crate `notify` provides a cross-platform notification
library.
2021-09-27 23:08:37 +02:00
Jan Scheer
a9066e2d0c
tail: switch from Notify 4.0.17 to 5.0.0-pre.13
...
* treat input filenames as PathBuf instead of String
2021-09-23 13:34:20 +02:00
Jan Scheer
fe3d020f6f
tail: use crate notify
for polling (implement --disable-inotify
)
2021-09-18 18:07:57 +02:00
Jan Scheer
a727b2e666
tail: handle file NotFound error correctly
2021-09-16 21:40:15 +02:00
Jan Scheer
1f24b1f59c
tail: implement sub-second sleep interval e.g. -s.1
2021-09-16 17:14:23 +02:00
Sylvestre Ledru
b1317c589e
Merge pull request #2674 from sylvestre/udeps
...
Add a github check to verify useless dependencies
2021-09-15 12:31:05 +02:00
Sylvestre Ledru
7eaae75bfc
add a github action job to identify unused deps
2021-09-15 12:06:50 +02:00
Michael Debertol
5c97c1ccc4
Merge pull request #2678 from blyxxyz/io-error-detect-os
...
Do not discard non-OS error messages
2021-09-14 20:21:48 +02:00
Michael Debertol
1cfed70da5
Merge pull request #2673 from sylvestre/more-dep-cleanup
...
Restrict some crates to specific OS
2021-09-14 20:09:39 +02:00
Michael Debertol
8fec7f38a1
Merge pull request #2658 from jfinkels/seq-whitespace-inputs
...
seq: trim leading whitespace from inputs
2021-09-14 20:00:45 +02:00
Jan Verbeek
1edd2bf3a8
Do not discard non-OS error messages
2021-09-14 15:11:54 +02:00
Jeffrey Finkelstein
60025800c3
seq: trim leading whitespace from inputs
2021-09-13 21:46:17 -04:00
Sylvestre Ledru
2a4422997d
Restrict some crates to specific OS
2021-09-13 22:45:55 +02:00
Sylvestre Ledru
e9d63519dd
Merge pull request #2668 from sylvestre/unused-deps
...
Remove plenty of unused deps
2021-09-13 21:45:39 +02:00
Michael Debertol
5d7e7ed4c0
Merge pull request #2651 from jhscheer/ls_small_fix_for_test_from_2627
...
test_ls: add features for uutils called by ccmd
2021-09-13 18:35:32 +02:00
Michael Debertol
570f23ac90
Merge pull request #2647 from jfinkels/seq-test-inf
...
seq: use stdout.write_all() instead of print!()
2021-09-13 18:34:24 +02:00
Sylvestre Ledru
a74e4bf095
shred: remove the unused dep on filetime
2021-09-13 18:15:51 +02:00
Sylvestre Ledru
a6c235bcd1
csplit: remove the unused dep on glob
2021-09-13 18:15:51 +02:00
Sylvestre Ledru
826c948234
ls: remove the unused dep on locale
2021-09-13 18:15:51 +02:00
Sylvestre Ledru
2d67252dc4
rm: only set the winapi dep on Windows
2021-09-13 18:15:51 +02:00
Sylvestre Ledru
cca2b19b4e
tail: only set the winapi dep on Windows
2021-09-13 18:15:49 +02:00
Michael Debertol
5faa4c41db
Merge pull request #2607 from jfinkels/tac-regex
...
tac: add support for --regex option to tac
2021-09-13 18:12:57 +02:00
Sylvestre Ledru
7712fd02f2
Merge pull request #2670 from sylvestre/freebsd3
...
Fixed a warning on freebdsd
2021-09-13 18:09:00 +02:00
Sylvestre Ledru
87b6aa89e3
pr: remove unused "time" dep ( #2667 )
2021-09-13 18:08:51 +02:00
Sylvestre Ledru
68df4de1a2
nice: update to use the same version of nix as other programs ( #2666 )
2021-09-13 18:08:41 +02:00
Sylvestre Ledru
ebe897e4d4
shred: remove unused "time" dep ( #2665 )
2021-09-13 18:05:06 +02:00
Sylvestre Ledru
2203e5ea78
Merge pull request #2671 from jhscheer/fix_tests_with_expected_result
...
tests/common: make call to `host_name_for` idempotent
2021-09-13 13:31:19 +02:00
Sylvestre Ledru
450a3faf9f
Add to the spell ignore list
2021-09-13 12:29:28 +02:00
Jan Scheer
deedb73bcb
tests/common: make call to host_name_for
idempotent
...
This fixes an issue on macOS/bsd where multiple calls
to `host_name_for` each added a prefix 'g'.
The issue led to some tests being skipped because `util_name` was
renamed to e.g. "ggid" instead of "gid".
2021-09-13 12:28:47 +02:00
Sylvestre Ledru
b4f45bcc1a
Merge pull request #2664 from jfinkels/wc-remove-mut-width
...
wc: remove mutable min_width parameter
2021-09-13 08:25:46 +02:00
Sylvestre Ledru
fd22feb090
Merge pull request #2669 from blyxxyz/mktemp-unsafe
...
mktemp: Do not use unsafe
2021-09-13 08:25:28 +02:00
Sylvestre Ledru
cc8522a2db
Fixed a warning on freebdsd:
...
warning: unused import: `std::os::unix::fs::PermissionsExt`
2021-09-12 23:14:34 +02:00
Jan Verbeek
3e0b3c93ef
mktemp: Do not use unsafe
2021-09-12 21:50:36 +02:00
Jeffrey Finkelstein
7ec6452265
wc: remove mutable min_width parameter
...
Remove mutability from the `min_width` parameter to the `print_stats()`
function in `wc`.
2021-09-12 12:25:52 -04:00
Sylvestre Ledru
238bcb9634
Merge pull request #2661 from blyxxyz/fix-clippy-chcon
...
chcon: Remove unused Options.dereference to fix Clippy
2021-09-12 16:46:42 +02:00
Jan Verbeek
4a20ef1850
chcon: Remove unused Options.dereference to fix Clippy
2021-09-12 13:17:55 +02:00
Sylvestre Ledru
447d6f2b61
Merge pull request #2654 from blyxxyz/dedup-splice
...
Move common pipe and splice functions into uucore
2021-09-12 09:23:05 +02:00
Sylvestre Ledru
fc1f3a433d
Merge pull request #2655 from blyxxyz/simplify-unlink
...
unlink: Simplify, remove unsafe, move to core
2021-09-12 09:22:05 +02:00
Jeffrey Finkelstein
664c7a6ec5
tac: add support for --regex option to tac
...
Add support for `tac --regex`, where the line separator is interpreted
as a regular expression.
2021-09-11 22:54:55 -04:00
Jeffrey Finkelstein
96b8616a1a
seq: use stdout.write_all() instead of print!()
...
Change from using `print!()` to using `stdout.write_all()` in order to
allow the main function to handle broken pipe errors gracefully.
2021-09-10 20:00:26 -04:00
Jan Verbeek
d6a8485115
uucore::pipes: Expand documentation
2021-09-10 22:03:51 +02:00
Jan Verbeek
b7d697753c
unlink: Simplify, remove unsafe, move to core
...
This makes it no longer possible to pass multiple filenames, but every
other implementation I tried (GNU, busybox, FreeBSD, sbase) also
forbids that so I think it's for the best.
2021-09-10 21:50:38 +02:00
Jan Verbeek
23647be07a
cat: Use larger splice size
...
This raises performance by 10-20% or so.
2021-09-10 21:24:34 +02:00
Jan Verbeek
d002810a47
cat: Do not assume complete writes
2021-09-10 21:24:34 +02:00
Jan Verbeek
c1079e0b1c
Move common pipe and splice functions into uucore
...
This cuts down on repetitive unsafe code and repetitive code in
general.
2021-09-10 21:24:34 +02:00
Sylvestre Ledru
92a1f1422e
Merge pull request #2650 from blyxxyz/tty-flaky-test
...
tty: Make test_stdout_fail() less flaky
2021-09-10 20:45:18 +02:00
Jan Verbeek
8f901ee860
tty: Make test_stdout_fail() less flaky
2021-09-10 19:29:27 +02:00
Jan Verbeek
91d39de16e
sort: derive Default impl for FieldSelector
2021-09-10 19:25:54 +02:00