1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-12 10:57:47 +00:00
Commit graph

15884 commits

Author SHA1 Message Date
Joseph Jon Booker
1e0f697ab0 expr: Fix cargo fmt of src/uu/expr/src/syntax_tree.rs 2025-01-19 05:24:41 -06:00
Sylvestre Ledru
8c27c7f3f2 Update src/uu/expr/src/syntax_tree.rs 2025-01-19 05:15:13 -06:00
Joseph Jon Booker
6701c6ef44 expr: Rework branches and add tests for check_posix_regex_errors 2025-01-19 05:15:13 -06:00
Joseph Jon Booker
cfb539d672 expr: rename validate_regex to check_posix_regex_errors
Also clarified the intent of this function
2025-01-19 05:15:13 -06:00
Joseph Jon Booker
335b13f940 expr: Minor linting fix 2025-01-19 05:15:13 -06:00
Joseph Jon Booker
bff827d9ed expr: Reject invalid intervals in regular expressions 2025-01-19 05:15:13 -06:00
Joseph Jon Booker
fa0bd722b7 expr: Allow initial asterisk in regular expressions
GNU expr appears to treat this as a literal asterisk
2025-01-19 05:15:12 -06:00
Joseph Jon Booker
6a7df7d6c1 expr: Add specific errors for invalid regular expressions 2025-01-19 05:11:40 -06:00
Joseph Jon Booker
0ba9a301b0 expr: fix panic for "empty substitution" test case 2025-01-19 05:09:22 -06:00
Joseph Jon Booker
aa010b71b8 expr: Change error messages when missing closing parenthesis
This situation now has two errors - one if we parse a character that
isn't a closing parenthesis, and the other if we don't parse anything.
2025-01-19 05:09:22 -06:00
Sylvestre Ledru
b6f6d93a90
Merge pull request #7155 from cakebaker/numfmt_expand_test
numfmt: extract test from other test & expand it
2025-01-18 22:38:06 +01:00
Sylvestre Ledru
03fc5ca381 chmod/uucore dep: add missing dependency 2025-01-18 21:45:55 +01:00
Sylvestre Ledru
178f57fad6 uucore: add missing declarations 2025-01-18 21:43:18 +01:00
Daniel Hofstetter
79f4b8976c
Merge pull request #7154 from jfinkels/ls-time-style-timezone-abbrev
ls: display %Z alphabetic time zone abbreviation
2025-01-18 16:54:16 +01:00
Daniel Hofstetter
899aca3880 numfmt: extract test from other test & expand it 2025-01-18 16:19:39 +01:00
Jeffrey Finkelstein
ab6d95cdb9 ls: display %Z alphabetic time zone abbreviation
Display the alphabetic timezone abbreviation (like "UTC" or "CET") when
the `--time-style` argument includes a `%Z` directive. This matches the
behavior of `date`.

Fixes #7035
2025-01-18 09:33:52 -05:00
Jeffrey Finkelstein
ef0377d3da ls: refactor time formatting helper method 2025-01-18 09:29:01 -05:00
Daniel Hofstetter
64dad0c3ab
Merge pull request #7144 from sylvestre/comm2
comm: implement the ordering check
2025-01-18 14:53:33 +01:00
Sylvestre Ledru
16b0122a79 Update GNU reference to 9.6 2025-01-18 10:17:15 +01:00
Sylvestre Ledru
b50a012d13 comm: implement the ordering check
A few comments:
* skip if the two args are pointing to the same file
* skip if the same content in the two files
* implement --check-order
* implement --nocheck-order
* output the right things on stderr

Should pass: tests/misc/comm
2025-01-18 09:22:41 +01:00
Sylvestre Ledru
05c4ce06d1
Merge pull request #7151 from jfinkels/df-mountinfo-special-chars
df: fix display of special characters
2025-01-17 09:15:23 +01:00
Daniel Hofstetter
df77904999
Merge pull request #7150 from uutils/renovate/chrono-tz-0.x-lockfile
chore(deps): update rust crate chrono-tz to v0.10.1
2025-01-17 06:55:33 +01:00
Yykz
96c17312ea df: fix display of special characters
Replace the display of certain special characters in `df`: ASCII space
for plain space character, ASCII horizontal tab for plain tab
character, and ASCII backslash for plain backslash character.

Co-authored-by: Jeffrey Finkelstein <jeffrey.finkelstein@protonmail.com>
2025-01-16 21:49:58 -05:00
renovate[bot]
498f63ca12
chore(deps): update rust crate chrono-tz to v0.10.1 2025-01-16 21:38:10 +00:00
Sylvestre Ledru
f39fdd2831
Merge pull request #7146 from cakebaker/bump_chrono_tz
Bump `chrono-tz` to `0.10.0`
2025-01-16 12:39:50 +01:00
Daniel Hofstetter
7edd045206 date: use UTC if TZ is empty 2025-01-16 11:44:45 +01:00
Daniel Hofstetter
ada18863a7 date: adapt to API change in chrono-tz 2025-01-16 11:44:45 +01:00
Daniel Hofstetter
6bedec53ad Bump chrono-tz from 0.8.6 to 0.10.0 2025-01-16 11:44:45 +01:00
Sylvestre Ledru
3913152a27
Merge pull request #7148 from cakebaker/fuzz_bump_bigdecimal
fuzz: bump `bigdecimal` from `0.4.3` to `0.4.7`
2025-01-16 11:33:12 +01:00
Daniel Hofstetter
2e4d4b4599 fuzz: bump bigdecimal from 0.4.3 to 0.4.7 2025-01-16 10:55:07 +01:00
Daniel Hofstetter
b7edb42f22
Merge pull request #7147 from uutils/sylvestre-patch-3-1
why-error: fixed tests/seq/seq-precision
2025-01-16 10:42:32 +01:00
Sylvestre Ledru
8b93c066f4
why-error: fixed tests/seq/seq-precision
by https://github.com/uutils/coreutils/pull/7145
2025-01-16 10:29:47 +01:00
Sylvestre Ledru
6060a3e831
Merge pull request #7145 from alexs-sh/seq-fix-min-exponent
seq: add a lower bound for exponents
2025-01-16 10:28:48 +01:00
Alexander Shirokov
b3c0633b95
seq:add bounds for exponents
Add bounds for exponents to avoid overflow issues for inputs like 'seq
1e-9223372036854775808'
2025-01-15 22:35:24 +01:00
Daniel Hofstetter
dca0ec0e65
Merge pull request #7140 from sylvestre/comm-test
comm: don't use files for test
2025-01-15 16:40:24 +01:00
Sylvestre Ledru
4e45ca673c comm: don't use files for test 2025-01-15 16:13:51 +01:00
Sylvestre Ledru
e61147b154
Merge pull request #7143 from cakebaker/dircolors_move_use_to_top
dircolors: move `use` declaration to top
2025-01-15 14:26:50 +01:00
Daniel Hofstetter
1b5e321fc2 dircolors: move use declaration to top 2025-01-15 14:19:05 +01:00
Alexander
05ada0d204
seq:add floating point support (#6959)
* seq:enable parsing of hexadecimal floats

Turn on the float parser. Now it's possible to use hexadecimal floats as
parameters. For example,

    cargo run -- 0x1p-1 3
    0.5
    1.5
    2.5

Issue #6935

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-01-15 11:53:18 +01:00
Daniel Hofstetter
6600397a65
Merge pull request #7141 from uutils/sylvestre-patch-3
dircolors is fixed by https://github.com/uutils/coreutils/pull/7089
2025-01-15 11:15:36 +01:00
Daniel Hofstetter
c322fb5c73
Merge pull request #7134 from jfinkels/date-timezone-name
date: display %Z alphabetic time zone abbreviation
2025-01-15 11:07:46 +01:00
Sylvestre Ledru
c07e0e8973
dircolors is fixed by https://github.com/uutils/coreutils/pull/7089 2025-01-15 10:42:14 +01:00
Daniel Hofstetter
d7800b5c88
Merge pull request #7089 from sylvestre/dircolors
dircolors: fix empty COLORTERM matching with ?* pattern
2025-01-15 10:17:52 +01:00
Daniel Hofstetter
3812cbce8a
Merge pull request #7136 from sylvestre/gnu-build
Improve gnu build script
2025-01-15 10:10:56 +01:00
Daniel Hofstetter
09ee3dc8ac
GNU build: add word to spell-checker:ignore 2025-01-15 09:43:37 +01:00
Daniel Hofstetter
5767f6edc6 deny.toml: remove Unicode-DFS-2016 from licenses 2025-01-15 07:22:20 +01:00
Daniel Hofstetter
e642b16534 deny.toml: remove syn from skip list 2025-01-15 07:20:40 +01:00
Daniel Hofstetter
7673969073
Merge pull request #7137 from uutils/renovate/data-encoding-macro-0.x-lockfile
fix(deps): update rust crate data-encoding-macro to v0.1.16
2025-01-15 07:13:46 +01:00
renovate[bot]
0d4fa8a3ff
fix(deps): update rust crate data-encoding-macro to v0.1.16 2025-01-14 23:58:58 +00:00
Krishna Nagam
d82d038b54 date: display %Z alphabetic time zone abbreviation
Improve the display of dates formatted with the `%Z` specifier so that
the timezone abbreviation is displayed, not just its numeric offset.

Fixes #3756

Co-authored-by: Jeffrey Finkelstein <jeffrey.finkelstein@protonmail.com>
2025-01-14 17:49:11 -05:00