Commit graph

6206 commits

Author SHA1 Message Date
Sylvestre Ledru
644fd1c93e fix some clippy warnings 2023-06-25 22:29:08 +02:00
Nikolai
0b06f2b4a8 fixing seq panic on none 2023-06-25 22:23:40 +02:00
Sylvestre Ledru
b03a88e154
Merge pull request #4972 from cakebaker/sort_migrate_from_ouroboros_to_self_cell
sort: migrate from ouroboros to self_cell
2023-06-25 21:15:02 +02:00
renovate[bot]
824097d224
fix(deps): update rust crate libc to 0.2.147 2023-06-25 19:09:01 +00:00
Sylvestre Ledru
ddcdda44db Remove the auto capitalization of error message 2023-06-25 00:18:33 +02:00
Sylvestre Ledru
da8cb64b74
Merge pull request #4989 from cakebaker/touch_rename_const
touch: rename CURRENT to TIMESTAMP
2023-06-24 10:24:21 +02:00
Sylvestre Ledru
ed71bb60e0
Merge pull request #4995 from cakebaker/nl_implement_default_for_settings
nl: implement Default for Settings
2023-06-24 10:24:08 +02:00
Daniel Hofstetter
d57a5eb6a3 seq: remove two chars in seq.md 2023-06-24 07:07:38 +02:00
renovate[bot]
0144a3c78f
fix(deps): update rust crate itertools to 0.11.0 2023-06-22 13:43:21 +00:00
Daniel Hofstetter
0010fece35 nl: remove "spell-checker:ignore" line 2023-06-22 14:35:04 +02:00
Daniel Hofstetter
d00134640b nl: use "const" instead of "static" 2023-06-22 14:33:32 +02:00
Daniel Hofstetter
c32139784a nl: implement Default for Settings 2023-06-22 14:30:53 +02:00
Daniel Hofstetter
98d242de7e nl: fix typo in nl.md 2023-06-22 10:04:37 +02:00
Sylvestre Ledru
8debc96eeb
Merge pull request #4983 from TheDcoder/parse-hex
od: fix parsing of hex input ending with `E`
2023-06-20 22:55:32 +02:00
yt2b
c3f2ac6f04 yes: add --version option 2023-06-20 23:20:22 +09:00
Daniel Hofstetter
98ef87af86 touch: cleanup "spell-checker:ignore" line 2023-06-20 15:28:32 +02:00
Daniel Hofstetter
e990f87edc touch: rename CURRENT to TIMESTAMP 2023-06-20 15:23:54 +02:00
Daniel Hofstetter
6ebfaf4b9d sort: migrate from ouroboros to self_cell 2023-06-19 10:17:39 +02:00
Sylvestre Ledru
66723e0961
Merge pull request #4447 from Freaky/dd-alarm-timer
dd: use an alarm thread instead of elapsed() calls
2023-06-19 09:27:13 +02:00
Damon Harris
b7154a80e1 od: fix parsing of hex input ending with E 2023-06-18 21:02:39 +05:30
Kostiantyn Hryshchuk
7306be6e58 fixed shred -u for windows
fixed shred panic on windows
2023-06-18 17:12:10 +02:00
John Shin
47d0ac4a42 sync: fix error msg 2023-06-17 19:50:47 -07:00
Daniel Hofstetter
643afbd731 date: use ShortcutValueParser 2023-06-14 13:34:50 +02:00
Daniel Hofstetter
24b979c821 uucore: introduce ShortcutValueParser 2023-06-14 13:34:50 +02:00
Rayhan Faizel
fa11315ce7 mv: check strictly for hard links first before checking for symlinks to catch a very special case, plus ensure only nobackupmode is considered 2023-06-12 23:48:49 +05:30
Rayhan Faizel
c113284a4b uucore: modify are_hardlinks_to_same_file to check only immediate metadata 2023-06-12 23:46:33 +05:30
Sylvestre Ledru
e7557c2bae
Merge branch 'main' into dd-alarm-timer 2023-06-11 18:27:41 +02:00
Sylvestre Ledru
856825bbbc
Merge pull request #4966 from Skryptonyte/mv_selfinto2fix
mv: fix into-self-2.sh test
2023-06-11 18:26:25 +02:00
Daniel Hofstetter
67114ac63c date: switch to parse_datetime 2023-06-11 14:36:51 +02:00
Rayhan Faizel
28ad5cab9f mv: fix GNU test tests/mv/into-self-2.sh 2023-06-10 18:32:09 +05:30
Rayhan Faizel
ab42b1e599 uucore: add function which checks hardlink as well as directed symlink 2023-06-10 18:31:30 +05:30
Sylvestre Ledru
63b84fed8b
Merge pull request #4927 from cakebaker/bump_fundu_and_fix_compile_errors
Bump fundu to 1.0.0 and fix compile errors
2023-06-10 09:23:21 +02:00
Frantisek Kropac
ad96a1b8a0
Find MountInfo properly when symlink is used (#4929)
* Find MountInfo properly when symlink is entered

According to GNU implementation the entered path is
being compared with the canonicalized device name
in MountInfo.

Co-authored-by: Frantisek Kropac <kropac.ff@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-06-10 09:22:01 +02:00
renovate[bot]
d26c596a4c
fix(deps): update rust crate memmap2 to 0.7 2023-06-08 11:02:36 +00:00
Sylvestre Ledru
6ecef3a0e3 Reformat TOML files with taplo
npx --yes @taplo/cli fmt
2023-06-08 09:07:19 +02:00
Sylvestre Ledru
6d6966cfb1
Merge pull request #4952 from wanderinglethe/date-remove-time-dep
Remove time dependency from date
2023-06-06 22:21:38 +02:00
Daniel Hofstetter
0128198a99
Merge pull request #4954 from Skryptonyte/ls_sortwidth
ls: Implement new sort option --sort=width
2023-06-06 18:46:54 +02:00
Rayhan Faizel
3f33c5b816 ls: Implement --sort=width 2023-06-06 20:55:42 +05:30
renovate[bot]
c68b665bf9
fix(deps): update rust crate libc to 0.2.146 2023-06-06 14:39:50 +00:00
Wandering Lethe
42a22c12f1
Remove time dependency from date
Also upgrades humantime_to_duration to the latest version, it switched from time to chrono. Because touch still depends on time, its humantime_to_duration package version deviates from the workspace version.
2023-06-05 21:41:32 +02:00
Detlev Casanova
b070506255 tsort: Switch to BTreeHash and BTreeSet
Using HashMap and HashSet give a valid topological sort, but the output
will change randomly at each run.

BTree based structures will guarantee that the output is always ordered
in the same way.

This also makes the ouptut similar to the output of the C version of the
tools, on which some applications rely.
2023-06-05 11:06:53 -04:00
Miles Liu
1c4d7b2f87
install: remove time crate 2023-06-05 16:34:50 +08:00
Sylvestre Ledru
3d220513e3
Merge pull request #4942 from x-dune/pr-use-chrono
`pr` use chrono instead of time
2023-06-04 18:46:38 +02:00
Sylvestre Ledru
abfceda12d
Merge pull request #4926 from sylvestre/new-release
New release
2023-06-04 16:09:04 +02:00
Tracy
126bbba17a
pwd: Fixes #4855 (#4937)
Based on testing with GNU's pwd, it seems like the -P flag should
take precedence over the use of the POSIXLY_CORRECT flag.

Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-06-04 16:03:01 +02:00
x-dune
7958c5d061 pr: use chrono instead of time 2023-06-04 20:17:52 +08:00
Sylvestre Ledru
9f38142522 add uuhelp to the ignore spell 2023-06-04 11:27:50 +02:00
Sylvestre Ledru
204d9b64f9 uuhelp_parser: update of the version 2023-06-04 09:46:59 +02:00
Sylvestre Ledru
e3cb5a111d Rename help_parser => uuhelp_parser 2023-06-04 09:46:59 +02:00
Sylvestre Ledru
a13d7f4060 uuhelp_parser: add the desc 2023-06-04 09:46:59 +02:00
Sylvestre Ledru
830b7d5ce1 New release 2023-06-04 09:46:59 +02:00
Guillaume Ranquet
ee4691f4a2 cp: makes --preserve requires =
prevents --preserve to eat the next argument when no value is passed.

default value for --preserve is set to mode,ownership(unix only),timestamps

before the patch:
cp --preserve foo bar
error: invalid value 'foo' for '--preserve [<ATTR_LIST>...]'
  [possible values: mode, ownership, timestamps, context, link, links, xattr, all]

Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
2023-06-04 09:46:35 +02:00
Sylvestre Ledru
160952a42c
Merge pull request #4918 from shinhs0506/core-size
shred: add support for octal and hex size
2023-06-03 10:48:19 +02:00
Sylvestre Ledru
e8effd0d0a
Merge pull request #4914 from Ideflop/more_implement_arguments_lines_and_number
more: implement arguments -n/--lines and --number
2023-06-02 20:20:20 +02:00
Sylvestre Ledru
20ce7accf2 cp: -i prompts in the right place
Should fix tests/cp/cp-i.sh
2023-06-01 21:42:35 +02:00
Sylvestre Ledru
4eb1e847e9 cp --no-clobber should fail 2023-06-01 21:42:32 +02:00
Daniel Hofstetter
b6c02c1a23 tail: fix compile error due to fundu update 2023-06-01 15:30:43 +02:00
Daniel Hofstetter
ccee02f025 sleep: fix compile error due to fundu update 2023-06-01 10:57:54 +02:00
Terts Diepraam
77e183955b head: use OsStringExt::from_vec instead of std::from_utf8_unchecked
This no longer triggers the `invalid_from_utf8_unchecked` lint. It
is also a bit cleaner and no longer requires `unsafe` because
OsString is not guaranteed to be valid UTF-8.
2023-05-31 21:18:13 +02:00
Terts Diepraam
701f30a15e
Merge pull request #4909 from sylvestre/test_debug
Add support for `cp --debug`
2023-05-31 20:27:02 +02:00
Daniel Hofstetter
09db8d8af9 fmt: adapt defaults to the ones used by GNU fmt 2023-05-31 16:41:56 +02:00
Daniel Hofstetter
42d6604e59 fmt: implement default for FmtOptions 2023-05-31 10:35:54 +02:00
Daniel Hofstetter
8940018833
Merge pull request #4897 from sylvestre/platform-info
update to platform-info 2.0.1
2023-05-31 09:29:57 +02:00
John Shin
4b09b917cd shred: use exact if size is given 2023-05-30 15:08:22 -07:00
John Shin
f10059db02 shred: refactor get_size 2023-05-30 13:40:41 -07:00
John Shin
b93bae2964 tail: fix parsing logic and add quote 2023-05-30 13:34:00 -07:00
John Shin
f10faf21bc head: interpret size as decimal 2023-05-30 13:32:48 -07:00
Sylvestre Ledru
f830b6e68f update to platform-info 2.0.1 2023-05-30 17:43:54 +02:00
Sylvestre Ledru
58bf998919
Ignore some words 2023-05-30 15:49:53 +02:00
John Shin
a397920183 core: refactor parse_number in size parser 2023-05-30 13:56:01 +02:00
John Shin
0465553f6e core: size parser treat 000 as decimal 2023-05-30 13:56:01 +02:00
John Shin
8ef926c6e8 core: refactor num and unit split 2023-05-30 13:56:01 +02:00
John Shin
6cadffc8f1 core: fix clippy warning for size parser 2023-05-30 13:56:01 +02:00
John Shin
3ca003846d shred: add support for hex and octal size 2023-05-30 13:56:01 +02:00
John Shin
6278c6f2d6 core: add octal and hex size parse support 2023-05-30 13:56:01 +02:00
Daniel Hofstetter
1781a5db1d
Merge pull request #4698 from uutils/renovate/windows-sys-0.x
fix(deps): update rust crate windows-sys to 0.48.0
2023-05-30 13:40:49 +02:00
Ideflop
f1c943ed31 more: error handling for write_all in function paging_add_back_message 2023-05-30 09:03:00 +02:00
renovate[bot]
2ec70dc05d
fix(deps): update rust crate dns-lookup to v2 2023-05-30 06:37:02 +00:00
renovate[bot]
8f9a328c6a
fix(deps): update rust crate windows-sys to 0.48.0 2023-05-30 06:36:57 +00:00
Daniel Hofstetter
191f2380b9
Merge pull request #4905 from sylvestre/mv-n
mv: Show 'skipped' when a file isn't overwriten
2023-05-30 07:27:48 +02:00
Sylvestre Ledru
f2006a9a6b cp: add support of cp --debug 2023-05-29 22:44:57 +02:00
Sylvestre Ledru
d38797bb50 mv: Show 'skipped' when a file isn't overwriten
Should fix tests/mv/mv-n.sh
2023-05-29 21:57:42 +02:00
Sylvestre Ledru
d303af31b7 cp: Accept --preserve=link
Used for example in:
tests/mv/hard-3.sh
2023-05-29 15:46:18 +02:00
Ideflop
6c98b23e80 more: implement arguments -n/--lines and --number 2023-05-29 14:36:18 +02:00
Jed Denlea
d6562b2b5f uniq: non-UTF-8 file names and fewer copies
uniq ought to be able to work with files whose names are not UTF-8.

I've also taken the chance to remove some unnecessary String
allocations.

Additionally, both open_input_file and open_output_file were returning
items with two implie levels of `Box<dyn ...>` that were not necessary.

In the case of stdin as input, it was not necessary to wrap stdin with a
BufReader, StdinLock implements BufRead itself.
2023-05-28 17:25:39 -07:00
Kamil Ogórek
07434647ad
fix: Correctly detect format when using md5sum with check flag (#4645) 2023-05-27 23:56:15 +02:00
Sylvestre Ledru
388fa1b717
Merge pull request #4696 from jeddenlea/wc
wc: streaming --files0-from and other improvements
2023-05-27 23:55:16 +02:00
Sylvestre Ledru
e295cb7acb
Merge pull request #4903 from Ideflop/more_implement_squeeze
more: implement argument -s / --squeeze
2023-05-27 20:38:52 +02:00
jaggededgedjustice
81a854a13e
date: Catch format string that is not supported by chrono (#4244)
* Catch format string that is not supported by chrono

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-05-27 15:41:12 +02:00
Ideflop
03dec5128c more: implement argument -s / --squeeze 2023-05-27 00:04:04 +02:00
Daniel Hofstetter
81e3b04b11
Merge pull request #4888 from Ludmuterol/more-panic-4886
fix(#4886) more: panics if file is not readable
2023-05-24 17:42:27 +02:00
tpeters
eed916a076 more: disable raw mode on error 2023-05-24 13:40:14 +02:00
Moïse Valvassori
b29f8b011b
chown: show "ownership of 'foo' retained" message
* Display a message when the owner is not changed.

* Display a message when the current user/group doesn't match those specified in the `--from` args.

* print messages to stdout

* Show the message "ownership of 'foo' retained as 'bar'" for every path entry when `chown -v -R --from=`

* fix chown tests: test stdout and not stderr

* factorize duplicate code in a function

* Display a message when the owner is not changed.

* Display a message when the current user/group doesn't match those specified in the `--from` args.

* print messages to stdout

* Show the message "ownership of 'foo' retained as 'bar'" for every path entry when `chown -v -R --from=`

* fix chown tests: test stdout and not stderr

* factorize duplicate code in a function

* display the retained ownership details according to the destination ownership.
2023-05-24 09:45:19 +02:00
Sylvestre Ledru
9a6d47759b
Merge pull request #4890 from shinhs0506/rm-i
fix rm/interactive-always.sh
2023-05-23 18:59:37 +02:00
tpeters
50bff30c67 more: add test and change error type 2023-05-23 18:03:25 +02:00
John Shin
e50b84035f rm: fix prompt when --interactive is once 2023-05-22 21:26:52 -07:00
John Shin
78909fdd39 rm: allow empty when for --interactive arg 2023-05-22 21:11:47 -07:00
tpeters
d41777c52c more: change file unwrap to match 2023-05-22 20:07:14 +02:00
renovate[bot]
cda52ebce6
fix(deps): update rust crate data-encoding-macro to 0.1.13 2023-05-22 12:36:42 +00:00
renovate[bot]
66224cdbf8
fix(deps): update rust crate data-encoding to 2.4 2023-05-22 11:32:58 +00:00
Jed Denlea
e5b46ea3eb wc: more tests and fixes
My previous commits meant to bring our wc's output and behavior in line
with GNU's. There should be tests that check for these changes!

I found a stupid bug in my own changes, I was not adding 1 to the
indexes produced by .enumerate() when printing errors.
2023-05-22 01:02:35 -07:00
Sylvestre Ledru
e5419ade96
Merge pull request #4878 from cakebaker/mktemp_4874
mktemp: prioritize TMPDIR over -p when using -t
2023-05-22 09:31:11 +02:00
Jed Denlea
c4b53a44b5 wc: make --files0-from work with streams 2023-05-21 23:59:32 -07:00
Sylvestre Ledru
c91520768e
Merge pull request #4876 from shinhs0506/mkdir-p
mkdir: set correct permissions on dirs created by -p
2023-05-22 07:43:52 +02:00
Moïse Valvassori
0130a07579
chown: show message if file doesn't exist
* print the message "failed to change ownership of" when we try to change a non existing file.

* replace the 4-tuple returned by parse_gid_uid_and_filter by GidUidOwnerFilter struct.

* chain the test in one expression.

* chown: remove unused var "result" in test

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-05-21 17:54:32 +02:00
Jed Denlea
d58ee5a28a wc: skip String to measure number length
Sadly ilog10 isn't available until we use 1.67, but we can get close in
the meantime.
2023-05-20 23:29:48 -07:00
Jed Denlea
36b45e2249 wc: touch up errors, quote more like GNU
WcError should not hold Strings which are clones of `&'static str`s.
thiserror provides a convenient API to declare errors with their Display
messages.

wc quotes the --files0-from source slightly differently when reporting
errors about empty file names.
2023-05-20 23:29:48 -07:00
Jed Denlea
38b4825e7f wc: avoid excess String allocations
print_stats will now take advantage of the buffer built into
io::stdout().

We can also waste fewer lines on show! by making a helper macro.
2023-05-20 23:08:26 -07:00
Jed Denlea
c3b06e10a6 wc: clean up of settings
The Settings object did not need a QuotingStyle member, it was basically
a static.
2023-05-20 22:30:14 -07:00
Daniel Hofstetter
70765eea82
Merge pull request #4872 from Ideflop/more_implement_print_over_and_clean_print
more: add arguments print over and clean print
2023-05-20 15:32:50 +02:00
Ideflop
2d1a9f6709 fix behavior of -c and -p commands 2023-05-20 08:56:50 +02:00
Daniel Hofstetter
698fafad68 mktemp: prioritize TMPDIR over -p when using -t 2023-05-20 08:02:37 +02:00
John Shin
9e8575dadd mkdir: add documentation for the use of allow attribute 2023-05-19 08:13:33 -07:00
John Shin
f592dff46a mkdir: skip setting dir permissions on windows 2023-05-18 19:34:57 -07:00
John Shin
b05c05eb45 mkdir: chmod of parent directories created by -p 2023-05-18 19:11:49 -07:00
Daniel Hofstetter
932f44d3dc more: support PageDown/PageUp keys 2023-05-18 15:24:49 +02:00
Daniel Hofstetter
74e73bee06
Merge pull request #4832 from sylvestre/issue_4821
mktemp -t foo.XXXX should create in TMPDIR
2023-05-18 14:12:40 +02:00
Sylvestre Ledru
cd189b2391 Fix mktemp -t -p ~/projects/playground foo.XXXX 2023-05-18 11:08:55 +02:00
Sylvestre Ledru
35b5fd6a40 mktemp -t foo.XXXX should create in TMPDIR 2023-05-18 11:08:55 +02:00
Jed Denlea
db5696f64b rm: support non-UTF-8 paths
Addresses #4868.
2023-05-17 23:01:21 -07:00
Ideflop
1ce52903b0
Merge branch 'uutils:main' into more_implement_print_over_and_clean_print 2023-05-17 22:47:07 +02:00
Ideflop
b676875c0c more: add arguments print over and clean print 2023-05-17 20:38:03 +02:00
Jed Denlea
3870ee252a yes: support non-UTF-8 args
Also, tighten the creation of the output buffer.  Rather than copy "y\n"
8192 times, or any other input some number of times, it can be doubled
in place using Vec::extend_from_within.
2023-05-15 11:29:14 -07:00
Sylvestre Ledru
369a2a6631
Simplify the declaration
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-05-15 10:12:28 +02:00
Sylvestre Ledru
3e7594632b ls: when facing an invalid utf-8, don't panic
Fails with
```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "invalid-\xE0-"', src/uu/ls/src/ls.rs:1932:53
```
2023-05-14 22:11:44 +02:00
Daniel Hofstetter
690fff2fc9 cksum: implement --untagged 2023-05-14 16:43:14 +02:00
John Shin
a817186e10 cp: preserve permissions on -r -p --parents 2023-05-12 11:34:51 -07:00
Sylvestre Ledru
64c49de0cc
Merge pull request #4432 from jfinkels/dd-nocache
dd: support the [io]flag=nocache option
2023-05-12 09:53:57 +02:00
Sylvestre Ledru
22a7f98a47
Merge pull request #4856 from cakebaker/cksum_fix_algorithm_output
cksum: fix output of --algorithm
2023-05-11 18:18:24 +02:00
John Shin
7a31d841ba
cp: preserve permission on -p --parents (#4853) 2023-05-11 16:44:23 +02:00
Daniel Hofstetter
0781ad0a65 cksum: fix output of --algorithm
for the algorithms md5, sha[1,224,256,384,512], blake2b, and sm3 from

<digest> <filesize> <filename>

to

<algo name> (<filename>) = <digest>

to use the same format as GNU cksum
2023-05-11 14:24:43 +02:00
SteveLauC
452be5a220
ls: device number for BSDs and solarishOS (#4841) 2023-05-11 12:58:36 +02:00
renovate[bot]
7983e23d53
fix(deps): update rust crate memmap2 to 0.6 2023-05-09 18:00:46 +00:00
Daniel Hofstetter
3f40ec4db7 basenc: add help texts for options 2023-05-09 09:44:48 +02:00
Daniel Hofstetter
49fd7c5697
Merge pull request #4847 from sylvestre/boc
doc: show a warning when no tldr example
2023-05-09 08:07:53 +02:00
renovate[bot]
30c166ad40
fix(deps): update rust crate libc to 0.2.144 2023-05-08 16:28:38 +00:00
Sylvestre Ledru
caf9bfcadc doc: show a warning when no tldr example 2023-05-08 17:48:23 +02:00
Daniel Hofstetter
d769871374
Merge pull request #4831 from sylvestre/mv-hardlink
mv: 'mv source hardlink' should fail
2023-05-08 16:12:23 +02:00
Sylvestre Ledru
594f81a88a mv --backup=simple a b on hard links should not fail
touch a
ln a b
./target/debug/coreutils mv --backup=simple a b

GNU: tests/mv/hard-4.sh
2023-05-08 13:08:20 +02:00
Daniel Hofstetter
f9536e9914
Merge pull request #4842 from sylvestre/aze
dd: fix some clippy warnings 'variable does not need to be mutable'
2023-05-08 07:44:55 +02:00
Sylvestre Ledru
1b99376d95 mv: split exec into smaller functions 2023-05-07 23:08:44 +02:00
Sylvestre Ledru
a5a39b6ba8 mv: 'mv source hardlink' should fail
fixes: tests/mv/force.sh
2023-05-07 23:08:41 +02:00
Sylvestre Ledru
b7cf825887 uucore::fs add an hardlink detection 2023-05-07 23:04:52 +02:00
Jeffrey Finkelstein
4ff318aee1 fixup! dd: support the [io]flag=nocache option 2023-05-07 16:33:21 -04:00
Sylvestre Ledru
916f014ef0 dd: fix some clippy warnings 'variable does not need to be mutable' 2023-05-07 18:46:08 +02:00
Jeffrey Finkelstein
bd18a2a344 dd: support the [io]flag=nocache option
Add support for the `iflag=nocache` and `oflag=nocache` to make `dd`
discard the filesystem cache for the processed portion of the input or
output file.
2023-05-07 11:43:13 -04:00
Jeffrey Finkelstein
cc2f97ba0d dd: add discard_cache() funcs for Input, Output
Add the `Input::discard_cache()` and `Output::discard_cache()`
functions. These allow discarding the filesystem cache when `dd` no
longer needs to access a specified portion of the input or output
file, respectively.
2023-05-07 11:43:13 -04:00
Jeffrey Finkelstein
12e4acaec3 dd: add bytes_total to ReadStat
Add the `bytes_total` field to the `ReadStat` struct. This lets the
main loop of `dd` keep track of the total number of bytes read.
2023-05-07 11:43:13 -04:00
renovate[bot]
214c027cfa
fix(deps): update rust crate libc to 0.2.143 2023-05-06 19:01:14 +00:00
Sylvestre Ledru
9dc8bc83a6
Merge pull request #4837 from m11o/tty-move-strings-to-md-file
tty: move help strings to markdown file
2023-05-06 19:51:23 +02:00
Daniel Hofstetter
93f28dacc0
Merge pull request #4834 from sylvestre/cognitive_complexity
Lower the clippy cognitive complexity & fix lines_filter_map_ok
2023-05-06 17:48:23 +02:00
Sylvestre Ledru
9ed7ac1481
Merge pull request #4826 from cakebaker/mv_4795
mv: if more than one of -i, -f, -n is specified, only the final one takes effect
2023-05-06 17:35:02 +02:00
m11o
1ac31ccfa0 tty: move help strings to markdown file 2023-05-07 00:27:16 +09:00
Sylvestre Ledru
d441d71aac
Merge pull request #4829 from m11o/tsort-move-strings-to-md-file
tsort: move help strings to markdown file
2023-05-06 14:55:49 +02:00
Sylvestre Ledru
cd688662ec fix some lines_filter_map_ok clippy warnings 2023-05-06 14:53:42 +02:00
Sylvestre Ledru
f8d7bebed3 ignore some cognitive_complexity for now 2023-05-06 14:50:55 +02:00
Daniel Hofstetter
40aaae003e
mv: improve help text
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-05-06 13:25:35 +02:00
Sylvestre Ledru
8f4367c3bc
to make it clearer 2023-05-06 10:32:18 +02:00
m11o
94daed8afb tsort: move help strings to markdown file 2023-05-06 00:34:55 +09:00
Daniel Hofstetter
4481604f87 cp: fix "after help" output 2023-05-05 16:12:34 +02:00
Daniel Hofstetter
ea2b725abb mv: fix help output 2023-05-05 15:17:37 +02:00
Daniel Hofstetter
93c8623da9 mv: if more than one of -i, -n, -f, latest "wins" 2023-05-05 15:17:37 +02:00
Daniel Hofstetter
4ee1118061
Merge pull request #4823 from shinhs0506/mv-i-dir-file
fix tests/mv/i-5.sh
2023-05-04 13:43:05 +02:00
Daniel Hofstetter
616a166e36
Merge pull request #4820 from sylvestre/thru-dangling-2
cp: fix cp -f f loop when loop is a symlink loop
2023-05-04 08:20:57 +02:00
m11o
a822890939 fix help message in chgrp 2023-05-04 08:41:56 +09:00
John Shin
1c8aac0883 mv: return err if response is negative when moving a dir to existing dest during an interactive mode 2023-05-03 16:05:21 -07:00
Sylvestre Ledru
832fd2d2c6 cp: fix cp -f f loop when loop is a symlink loop
Fix: tests/cp/thru-dangling.sh
2023-05-03 19:54:35 +02:00
Sylvestre Ledru
6547bec2ef uucore/detect_symlink_loop: add a function to detect symlink loops 2023-05-03 19:54:33 +02:00
Thomas Hurst
01a8623d21 dd: Add documentation to Alarm struct 2023-05-03 16:31:14 +00:00
Thomas Hurst
546631c8e7 dd: Tidy includes 2023-05-03 16:30:53 +00:00
Daniel Hofstetter
a97199f72a
Merge pull request #4796 from shinhs0506/mv-cp-update
mv, cp: add support for --update=none,all,older
2023-05-03 15:21:21 +02:00
Daniel Hofstetter
82eb04c5a9
Merge pull request #4777 from Joining7943/tail-change-text-static-to-const
'tail': Change static global variables to const
2023-05-03 09:31:34 +02:00
Sylvestre Ledru
aae3f2f99c Ride along: fix some trivial clippy warnings 2023-05-02 23:22:39 +02:00
John Shin
898628fa3a core: fix typo in update control 2023-05-02 13:54:31 -07:00
John Shin
3b8f3d04f4 core: remove unnecessary if statement in update control 2023-05-02 12:49:49 -07:00
Masahito Osako
90e0d3030f
test: move help strings to markdown file (#4816) 2023-05-02 21:48:59 +02:00
John Shin
460d346069 core: remove '' case for the update argument 2023-05-02 12:42:39 -07:00
John Shin
06d4603bea core: fix typo in update control 2023-05-02 12:40:04 -07:00
John Shin
36e93e12d6 core: add header notice for update control 2023-05-02 12:38:12 -07:00
Daniel Hofstetter
3f8e21c36c
Merge pull request #4812 from sylvestre/thru-dangling
cp: add support POSIXLY_CORRECT=1 when dealing with dangling links
2023-05-02 10:00:18 +02:00
John Shin
60c0b661c3 core: fix typo in update control 2023-05-01 17:22:08 -07:00
Daniel Hofstetter
6d89e9bfd7 cksum: remove "-a="s from markdown file 2023-05-01 15:57:56 +02:00
John Shin
6625cfe88a mv: fix documentation 2023-05-01 03:54:04 -07:00
John Shin
92e1b3f7c0 cp: fix documentation 2023-05-01 03:53:52 -07:00
John Shin
c5327cf0a0 core: add docs for update control 2023-05-01 03:48:37 -07:00
Sylvestre Ledru
2d4dfc3d7d cp: add support POSIXLY_CORRECT=1 when dealing with dangling links
GNU: tests/cp/thru-dangling.sh
2023-05-01 11:05:00 +02:00
John Shin
b707b690c5 cp: remove long help 2023-04-30 20:16:01 -07:00
John Shin
85ded232bc mv: resolve merge conflict 2023-04-30 20:09:32 -07:00
John Shin
f83468d530 mv: move after help to md file 2023-04-30 20:03:22 -07:00
John Shin
2f975e913e cp: move after help to md file 2023-04-30 20:02:53 -07:00
John Shin
ed3ff10540 cp: write tests for --update 2023-04-30 19:29:49 -07:00
John Shin
2f8df653c5 core mv cp: update help doc for 'update' functionality 2023-04-30 18:53:11 -07:00
iambasanta
70b69efadb
sort: Move help strings to markdown file (#4808)
* sort: Move help strings to markdown file

* Correction for spell check
2023-04-30 19:50:28 +02:00
Daniel Hofstetter
599e7a0645
Merge pull request #4805 from iambasanta/tr-move-help-strings-to-md-file
tr: move help string to markdown file
2023-04-30 14:26:22 +02:00
Masahito Osako
e46b05722f
timeout: move help strings to markdown file (#4806)
* timeout: move help strings to markdown file
2023-04-30 08:51:14 +02:00
iambasanta
22490ae978 tr: move help string to markdown file 2023-04-30 10:32:58 +05:45
Daniel Hofstetter
7cfdbe676c mv: validate --target arg 2023-04-29 16:16:00 +02:00
Sylvestre Ledru
c5fb6eac9f
Merge pull request #4794 from shinhs0506/mv-target-dir
mv: check if --target is a directory
2023-04-29 10:40:44 +02:00
m11o
bc7a01dd3b sync: move help strings to markdown file 2023-04-29 15:51:55 +09:00
Sylvestre Ledru
9f9847188d
Merge pull request #3661 from cakebaker/unescaped_backslash
paste: handle list ending with unescaped backslash
2023-04-28 16:53:26 +02:00