coreutils
coreutils copied to clipboard
Cross-platform Rust rewrite of the GNU coreutils
The coreutils version currently uses the `parse_datetime` crate to parse the date source which parses in `YYYYMMDDHHMM` and similar formats. However it is not compliant with `date`: ``` Usage: date...
Hi, I think I've found a bug using the **-u** argument with date.exe. When is used with the _GnuWin32_ version it shows: `date.exe -u -d "@1715372666" +"%F, %T %Z%z"` **2024-05-10,...
GNU `uptime` allows you to specify a file, whereas uutils `uptime` doesn't: ``` $ ../gnu/src/uptime /var/log/wtmp 07:32:11 up 1:01, 995 users, load average: 0.32, 0.35, 0.34 $ cargo run --features=unix...
When the day in the YYYY-MM-DD format is 1 character long, an extra zero is added to the end ``` $ uu-date -d 2000-1-1 Mon Jan 10 00:00:00 2000 $...
This PR skips the "expensive_tests" feature when building a map of crates. It should fix the "use of undeclared crate or module `expensive_tests`" error in https://github.com/uutils/uutils.github.io/pull/35
A full automatic build of manpage and completion on build.rs inspired by https://github.com/bootandy/dust/blob/master/build.rs Related to: https://github.com/uutils/coreutils/issues/4464 To test, remember to `mkdir completion`
Related to #5069 https://docs.rs/uucore/latest/uucore/fn.args_os.html https://docs.rs/uucore/latest/uucore/fn.get_utility_is_second_arg.html https://docs.rs/uucore/latest/uucore/fn.set_utility_is_second_arg.html
display, encoding, os, etc aren't documented here: https://uutils.github.io/dev/uucore/index.html
Some functions aren't documented here: https://uutils.github.io/dev/uucore/index.html#functions
tr detects if a class in set2 is matched by a class at the correct position in set1 after it has expanded everything before the class: So tr 'abcd[:upper:]' 'a-d[:lower:]'...