John Shin
4acd02c7a1
ls: string compare if version_cmp returns equal
2023-07-04 16:08:54 -07:00
Sylvestre Ledru
9d44d8b71d
Merge pull request #4977 from cakebaker/date_shortcut_value_parser
...
date: use custom value parser
2023-07-04 19:56:46 +02:00
Sylvestre Ledru
264d29a169
fix the clippy warning
2023-07-04 18:45:11 +02:00
Terts Diepraam
c455aa0922
Merge pull request #5036 from cakebaker/nl_fix_no_renumber
...
nl: make -p/--no-renumber a flag
2023-07-04 14:16:04 +02:00
Daniel Hofstetter
fee5225cb6
nl: make --no-renumber a flag
2023-07-04 10:37:10 +02:00
Daniel Hofstetter
18e5c5b5f7
numfmt: remove duplicate info from help output
2023-07-04 07:02:18 +02:00
Sylvestre Ledru
d033db3573
split: reject some invalid values
...
Matches what is done in tests/split/fail.sh
(still doesn't work)
2023-07-03 22:57:37 +02:00
Sylvestre Ledru
37cbfd1efd
Merge pull request #5030 from cakebaker/touch_use_parse_datetime
...
touch: use parse_datetime instead of humantime_to_duration
2023-07-03 16:26:51 +02:00
Daniel Hofstetter
11b098fce1
Merge pull request #5028 from sylvestre/cp-multiple
...
cp: allow multiple usages of -R - Closes : #5027
2023-07-03 16:09:45 +02:00
Sylvestre Ledru
e491bbdbed
cp: allow multiple usages of -R/-r Closes : #5027
...
works for all other rm args
2023-07-03 14:19:45 +02:00
Roy Ivy III
af64bde92b
fix/touch ~ time crate usage errors
2023-07-03 14:15:15 +02:00
Sylvestre Ledru
7a7842b5b8
Merge pull request #4756 from Joining7943/tail-refactor-and-fix-input
...
`tail`: Refactor `paths::Input::from` and `Settings::inputs`
2023-07-03 14:09:57 +02:00
Roy Ivy III
9aef5ac35b
deps ~ change from 'humantime_to_duration' to 'parse_datetime'
2023-07-03 13:53:52 +02:00
Terts Diepraam
5a667db43d
tail: clean up some small things in input parsing
2023-07-03 13:20:48 +02:00
sbentmar
42bf580f13
numfmt: add --invalid option ( #4249 )
...
* numfmt: add invalid option
* numfmt: return code 0 if ignore or warn
* numfmt: implement all --invalid modes
* numfmt: validate stdout and stderr
* numfmt: remove unnecessary code
* numfmt: apply formatting
* numfmt: fix clippy issues
* numfmt: fix failing test cases
* numfmt: fix formatting
* numfmt: fix bug when handling broken pipe
* numfmt: fix bug where extra newline was added
* numfmt: add test cases for edge cases
* numfmt: simplify error handling
* numfmt: remove redundant if
* numfmt: add newline between functions
* numfmt: fix failing test cases
* numfmt: add support for arg numbers using --invalid
* numfmt: simplify error handling in value handlers
* numfmt: fix merge conflict and align prints
* numfmt: fix clippy suggestion
* numfmt: replace "valid" with "invalid" in tests
* numfmt: move INVALID to respect alph. order
* numfmt: move printlns outside of match to avoid duplication
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
* numfmt: remove empty line
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-07-01 17:08:12 +02:00
Daniel Hofstetter
a145798594
Merge pull request #4960 from granquet/ls_LZ
...
ls: force fetching metadata when called with -L -Z
2023-07-01 15:24:37 +02:00
Daniel Hofstetter
c524ec4a9f
Merge pull request #4950 from Ideflop/more_implement_arguments_plain_and_from_line
...
More implement arguments plain and from line
2023-07-01 14:18:54 +02:00
crapStone
863f91eca9
fix typos
...
some arguments had the wrong case
2023-06-29 15:34:19 +00:00
Daniel Hofstetter
610e0461e9
Merge pull request #5020 from indygreg/hashsum-file-stem
...
hashsum: use file_stem() instead of file_name()
2023-06-29 13:50:30 +02:00
Daniel Hofstetter
5b18c53c9d
Merge pull request #4999 from sylvestre/mv-backup-src
...
mv: add the check with --b=simple and when the source is a backup
2023-06-29 13:19:40 +02:00
Gregory Szorc
a7f95d5a23
hashsum: use file_stem() instead of file_name()
...
This program matches the binary name to determine which
algorithm to use. On Windows, `file_name()` was matching
against a string with `.exe`, causing binaries like
`sha256sum.exe` to not properly detect the algorithm.
By using `file_stem()`, we exclude the `.exe` from matching,
achieving similar and correct behavior on Windows.
2023-06-29 10:50:10 +02:00
Daniel Hofstetter
3357aa87a1
Merge pull request #5018 from sylvestre/memmap2
...
Move memmap2 in the root workpace
2023-06-29 09:31:04 +02:00
Sylvestre Ledru
14e5f89a0e
Move memmap2 in the root workpace
2023-06-28 23:16:16 +02:00
Sylvestre Ledru
40c598852b
mv: add the check with --b=simple and when the source is a backup
2023-06-28 23:11:28 +02:00
Sylvestre Ledru
24aff229da
Add a function to detect if file is likely to be the simple backup file
2023-06-28 23:11:25 +02:00
John Shin
d2e7ba2da1
sort: add tests for stable and unstable sort
2023-06-27 12:15:58 -07:00
John Shin
0ff00ec44c
uucore: leading zeros are ignored in version compare
2023-06-26 16:28:31 -07:00
Ideflop
77f8201fb8
more: fix bug not displaying next file message and not stopping at end of file
2023-06-26 21:57:52 +02:00
Ideflop
479340306e
more: implement arguments -u/--plain and -F/--from-line
2023-06-26 21:57:45 +02:00
Daniel Hofstetter
c05dbfa3b4
seq: rename "--widths" to "--equal-width"
...
for compatibility with GNU seq
2023-06-26 16:21:59 +02:00
Terts Diepraam
873c6c36f7
Merge branch 'main' into ls_LZ
2023-06-26 15:52:52 +02:00
Daniel Hofstetter
9149409065
Merge pull request #4991 from shinhs0506/du_apparent
...
du: directories have apparent size of 0
2023-06-26 14:58:40 +02:00
Guillaume Ranquet
80c7ed9732
ls: force fetching metadata when called with -L -Z
...
The metadata are not used but it permits to check the symlink is valid.
We then return 1 on invalid symlinks when ls is invoked with ls -L -Z
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
2023-06-26 14:46:56 +02:00
Daniel Hofstetter
6a7b5379ea
Merge pull request #5008 from uutils/renovate/libc-0.x
...
fix(deps): update rust crate libc to 0.2.147
2023-06-26 07:56:10 +02:00
John Shin
b34e7f7bf6
du: directories have apparent size of 0
2023-06-25 15:56:57 -07:00
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
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