Sylvestre Ledru
1c9413e185
bring back the old format
2023-12-04 22:51:08 +01:00
Sylvestre Ledru
3e35410907
dircolors: fix comments
2023-12-04 22:47:42 +01:00
Sylvestre Ledru
f5776bc511
fix comment
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-12-04 22:40:18 +01:00
Sylvestre Ledru
1a4ca7e65d
fix clippy warnings
2023-12-02 15:19:37 +01:00
Sylvestre Ledru
5d19f79cd0
dircolors should use the datastructures when printing
2023-12-02 15:04:39 +01:00
Sylvestre Ledru
0e8c171c80
dircolors: move the FILE_ATTRIBUTE_CODES datastructures and use it
2023-12-02 11:03:51 +01:00
Sylvestre Ledru
13a4c9114c
create datastructures for colors
2023-12-02 10:29:02 +01:00
Laurent Cheylus
420df3db3d
Add support in uucore for OpenBSD
...
- uucore/src/lib/features/fs.rs: add target_os = OpenBSD when needed
- uucore/src/lib/features/fsext.rs: implement FsUsage::new for OpenBSD
- fixes uutils/coreutils#5448
- initial code by n1000 https://github.com/n1000/coreutils/tree/openbsd_compile_fixes
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2023-11-29 17:44:50 +01:00
Sylvestre Ledru
3cadeb734d
Merge pull request #5561 from tertsdiepraam/fixup-macros
...
all: reduce imports needed for `show` and `show_if_err` macros
2023-11-29 15:10:59 +01:00
Sylvestre Ledru
14a8e8a452
Merge pull request #5128 from tertsdiepraam/printf-rewrite
...
`printf` rewrite (with a lot of `seq` changes)
2023-11-28 07:52:58 +01:00
Terts Diepraam
8eb66ab7ea
printf: remove whitespace, remove redundant spelling ignore and revert matching on result
2023-11-27 11:53:26 +01:00
zoze0
550f3b0c48
uucore: add support for loongarch64 ( #5574 )
...
* uucore: add support for loongarch64
* add loongarch
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-11-23 17:41:11 +01:00
Terts Diepraam
e95add7940
uucore/format: fix license headers and improve docs
2023-11-22 14:06:03 +01:00
renovate[bot]
3425ee8d59
fix(deps): update rust crate data-encoding-macro to 0.1.14
2023-11-22 06:09:44 +00:00
renovate[bot]
18b5c22567
fix(deps): update rust crate data-encoding to 2.5
2023-11-21 22:24:11 +00:00
Terts Diepraam
da7c168f9d
all: reduce imports needed for show and show_if_err macros
2023-11-21 12:49:07 +01:00
Terts Diepraam
5c04283d6e
printf: address fmt, clippy, spelling and failing test
2023-11-21 00:42:02 +01:00
Terts Diepraam
6d2698b802
Merge branch 'main' into printf-rewrite
2023-11-20 13:53:11 +01:00
Terts Diepraam
68d036c9a2
printf: basic support for unicode escape sequences
2023-11-20 13:45:02 +01:00
Terts Diepraam
066d8ba73d
printf: coerce missing and invalid arguments to 0
2023-11-20 13:25:20 +01:00
Terts Diepraam
c43ee01d19
printf: allow precision in string
2023-11-20 12:38:26 +01:00
Terts Diepraam
5f2374b339
printf: fix negative hex argument parsing
2023-11-17 14:57:09 +01:00
Terts Diepraam
955640aac8
printf: fix and test float formatting
2023-11-17 14:46:38 +01:00
Terts Diepraam
76eca8d999
uucore/format: fix doctests
2023-11-17 14:43:25 +01:00
Terts Diepraam
f3da0817a5
printf: support precision for integers
2023-11-17 14:42:52 +01:00
Terts Diepraam
f83e0d1b04
printf: accept multiple length parameters
2023-11-17 14:41:42 +01:00
Terts Diepraam
cd0c24af07
printf: implement %b
2023-11-17 14:41:14 +01:00
Terts Diepraam
a45ff8ca73
printf: more flexible parsing of unparsed arguments
2023-11-17 14:39:39 +01:00
Terts Diepraam
eaf5006379
printf: parse arguments and handle escape codes
2023-11-16 17:00:41 +01:00
Terts Diepraam
e7d58f673f
seq: simplify and use new printf implementation
2023-11-16 14:29:49 +01:00
ALXD
b3eae16fad
printf: intf: change warning and exit code
2023-11-15 17:50:34 +01:00
Sylvestre Ledru
ff92bfb25b
Prepare version 0.0.23
2023-11-13 22:02:01 +01:00
Terts Diepraam
6481d63ea4
uucore/format: implement single specifier formats
2023-11-13 15:22:49 +01:00
Terts Diepraam
39c6758475
uucore/format: move types for num_format
2023-11-09 16:05:11 +01:00
Terts Diepraam
198f7c7f26
printf: move number formatting to separate module
2023-11-09 15:48:26 +01:00
Zhuoxun Yang
e3ec12233b
printf: support %q
2023-11-09 10:17:44 +08:00
Brandon Elam Barker
44d105d015
Add support in uucore for illumos and solaris ( #5489 )
...
* uucore support for illumos and solaris
* use macro to consolidate illumos and solaris signals
* fixing some CI issues
* replaced macro with better cfg usage
2023-11-04 12:31:11 +01:00
Terts Diepraam
f117fc1bab
printf rewrite: fix compilation
2023-10-28 17:36:43 +02:00
Terts Diepraam
28810906a3
Merge branch 'main' into printf-rewrite
2023-10-28 16:35:58 +02:00
Daniel Hofstetter
9f63ae6645
fsext: add getmntinfo to spell-checker:ignore
2023-10-27 14:25:41 +02:00
Konstantin Belousov
11f56a79af
freebsd: fix the 'df' command
...
df, and perhaps other commands, get the list of the mounted filesystems
with the call to getmntinfo(3). Since Rust still use FreeBSD 11.x ABI
for filesystem metadata call, it should use matching versioned symbol for
getmntinfo from libc.
2023-10-27 12:38:20 +03:00
Sylvestre Ledru
4573eb693f
Merge pull request #5357 from zhitkoff/issue5334-uucore-parse-r-q
...
Implement SI prefixes R and Q
2023-10-18 18:55:17 +02:00
Daniel Hofstetter
a2defd1a21
uucore: remove incorrect comment
2023-10-18 16:34:35 +02:00
zhitkoff
abc95361a5
prase_size: comments
2023-10-17 10:50:50 -04:00
zhitkoff
74e01e3987
parse_size: more test case coverage
2023-10-17 10:50:50 -04:00
zhitkoff
cb7479e823
uucore: implement SI suffixes R and Q
2023-10-17 10:50:50 -04:00
renovate[bot]
c892c9346f
fix(deps): update rust crate dns-lookup to 2.0.4
2023-10-15 17:59:54 +00:00
Sylvestre Ledru
e1bd47d549
0.0.21 => 0.0.22
2023-10-15 14:33:23 +02:00
Sylvestre Ledru
29a5a13ce6
fs: split get_file_display into its function
2023-10-12 20:41:48 +02:00
Sylvestre Ledru
0695437de2
Merge pull request #5385 from cakebaker/uucore_remove_commented_out_enum
...
uucore: remove commented out enum FChar
2023-10-09 15:39:38 +02:00
Daniel Hofstetter
b38ac2cb74
uucore: remove commented out enum FChar
2023-10-09 15:28:12 +02:00
Daniel Hofstetter
2883c0a968
uucore: remove commented out import
2023-10-09 15:16:50 +02:00
Sylvestre Ledru
55fd1f3617
Replace list of digit by is_ascii_digit
...
and some ride along simplification
2023-09-28 23:07:01 +02:00
Sylvestre Ledru
265c258713
ranges: add unit tests to verify the parsing
...
To test them:
$ cargo test -p uucore --features ranges
2023-09-26 09:40:21 +02:00
Sylvestre Ledru
99120d32c1
cut: fail when the input == usize::MAX
2023-09-26 09:40:21 +02:00
renovate[bot]
6aba3a4d67
fix(deps): update rust crate wild to 2.2
2023-09-24 20:04:53 +00:00
pin
23ee9b622d
Add NetBSD support to uucore. ( #5289 )
...
* Add NetBSD support to uucore.
Fixes https://github.com/uutils/coreutils/issues/5288
2023-09-21 12:24:08 +02:00
Sylvestre Ledru
9b4d2c6bc4
ls: implement --dired
...
* Support ls --dired
* stat-failed.sh: update of the test - we have a small difference
* ls --dired: address some of the comments
* fix warnings
* use unwrap()
* Improve test
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Simplify test
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Remove a word from the spell ignore
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* remove duplication of the spell ignore
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* rustfmt
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-09-20 08:17:46 +02:00
renovate[bot]
416a4832b8
fix(deps): update rust crate dns-lookup to 2.0.3
2023-09-17 17:46:16 +00:00
Daniel Hofstetter
d19b8b78d8
uucore: turn quoting_style into a feature
2023-09-10 15:07:37 +02:00
Sylvestre Ledru
80f8eb6724
Merge pull request #5252 from zhitkoff/split-gnu-test-fail.sh
...
split: implement remaining -n variants and pass GNU tests/split/fail.sh
2023-09-07 17:15:09 +02:00
Daniel Hofstetter
5c93c592db
uucore: turn version_cmp into a feature
2023-09-06 09:47:50 +02:00
zhitkoff
2ae1d8d1cc
split: missing functionality for --number option
2023-09-05 17:13:30 -04:00
zhitkoff
636c2bb7ae
uucore: parse_size_max and split
2023-09-04 12:05:26 -04:00
Daniel Hofstetter
183d465f74
uucore: turn ranges into a feature
2023-09-03 16:20:15 +02:00
Sylvestre Ledru
9844f1f07d
0.0.20 => 0.0.21
2023-09-03 14:42:54 +02:00
Daniel Hofstetter
b405d4e6cc
uucore: turn update_control into a feature
2023-09-02 14:45:58 +02:00
Sylvestre Ledru
6012002880
Merge pull request #5231 from cakebaker/uucore_backup_control_feature
...
uucore: turn backup_control into a feature
2023-09-01 21:08:59 +02:00
Sylvestre Ledru
b783088900
Merge pull request #5229 from cakebaker/uucore_make_dunce_optional
...
uucore: make "dunce" optional
2023-09-01 16:54:42 +02:00
Daniel Hofstetter
b41ff2ed7f
uucore: turn backup_control into a feature
2023-09-01 16:20:37 +02:00
Daniel Hofstetter
2e71508308
uucore: make "dunce" optional
2023-09-01 09:47:22 +02:00
XXIV
4f465eb76c
remove unnecessary heap allocation
2023-08-31 23:44:45 +03:00
Daniel Hofstetter
fb1c663724
uucore: make deps of "sum" feature optional
2023-08-31 16:45:55 +02:00
Daniel Hofstetter
2e2387d434
parse_size,dd: turn instance fns to associated fns
2023-08-26 14:35:35 +02:00
Sylvestre Ledru
f0602b0ce6
Merge pull request #5204 from cakebaker/fix_clippy_warnings
...
Fix clippy warnings with Rust 1.72.0
2023-08-25 13:21:38 -04:00
Sylvestre Ledru
e8ed65f4fa
Merge pull request #5206 from cakebaker/fix_bool_to_int_with_if
...
uucore,comm: fix warnings from bool_to_int_with_if
2023-08-25 13:20:00 -04:00
Daniel Hofstetter
79a44d768c
uucore,comm: fix warnings from bool_to_int_with_if
2023-08-25 15:29:15 +02:00
Daniel Hofstetter
b9c05ed4e3
Remove the author copyright notices
...
from files missed by https://github.com/uutils/coreutils/pull/5184
and https://github.com/uutils/coreutils/pull/5197
2023-08-25 15:03:19 +02:00
Daniel Hofstetter
01b2834f2e
Fix clippy warnings with Rust 1.72.0
2023-08-25 13:22:02 +02:00
Terts Diepraam
c3f9e19a3b
all: normalize license notice in all *.rs files
2023-08-24 12:21:09 +02:00
Sylvestre Ledru
0b9c829bce
Merge pull request #5182 from sylvestre/clippy_
...
Fix some of the recent clippy warnings
2023-08-21 16:21:02 -04:00
Sylvestre Ledru
bf5b765cba
Remove the author copyright notices ( #5184 )
...
* Remove the author copyright notices
Rational:
* not maintained
* does not reflect reality
* don't provide any value (the info can be found in the git log)
* we don't have rules to update them
(ex: should you update it after one line, two lines, etc)
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-08-21 12:23:18 +02:00
Daniel Hofstetter
808f9e2fd6
uucore: add missing "!"
2023-08-21 10:56:17 +02:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Sylvestre Ledru
7c9f4ba92a
Fix some clippy warnings
2023-08-21 08:41:40 +02:00
Simon Legner
872818607f
Extract uucore::line_ending::LineEnding ( #5120 )
...
* Extract uucore::line_ending::LineEnding
Aims to provide consistent newline/zero terminator handling.
* Apply suggestions from code review
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
* cargo fmt
* Use uucore::line_ending::LineEnding
* Remove uucore::line_ending::LineEnding::Space
* Rename LineEnding::from_zero_flag
* Replace LineEnding::None with Option<LineEnding>
* cargo clippy
* assert_eq
* cargo clippy
* cargo clippy
* uucore/line_ending: add more documentation
---------
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-08-20 10:03:29 +02:00
Terts Diepraam
0a4f833bb7
Merge pull request #5127 from cakebaker/uucore_fix_shortcut_value_parser
...
uucore: don't show error for ambiguous value
2023-08-11 11:16:30 +02:00
Terts Diepraam
407bccc54f
some more work on printf spec
2023-08-10 23:20:20 +02:00
Aneesh
773e69078c
docs(bin,has): add docstrings for macros bin and has
2023-08-03 13:39:38 +05:30
Terts Diepraam
a3e68d5bbd
uucore: start work on a completely new printf implementation
2023-08-02 23:57:26 +02:00
Daniel Hofstetter
ec27a074c0
uucore: don't show error for ambiguous value
...
that's a direct match in ShortcutValueParser
2023-08-01 08:39:05 +02:00
Daniel Hofstetter
fe9ec37141
uucore: use "workspace=true" for some dependencies
2023-07-22 16:14:32 +02:00
Sylvestre Ledru
74530c0f51
Update the version to 0.0.20
2023-07-14 13:04:17 +02:00
Daniel Hofstetter
5d03d2d9d4
clippy: fix warnings introduced by Rust 1.71.0
2023-07-13 17:35:33 +02:00
John Shin
844cbdc5a4
sort: add tests for stable and unstable sort
2023-07-05 10:05:52 +02:00
John Shin
e9405250f4
uucore: leading zeros are ignored in version compare
2023-07-05 10:05:52 +02: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
24aff229da
Add a function to detect if file is likely to be the simple backup file
2023-06-28 23:11:25 +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