coreutils
coreutils copied to clipboard
Cross-platform Rust rewrite of the GNU coreutils
Even if the `--preserve-root` option is set the chown command will attempt to follow a symlink pointing to root. This can be seen with the following test: ``` mkdir point-to-root...
I've started work on this. See: https://github.com/uutils/coreutils/pull/1922 I'd like to take a crack at the rest of the missing functionality.
It looks like all utilities specify their own usage string. For example, `sort`: ```rust fn get_usage() -> String { format!( "{0} [OPTION]... [FILE]... Write the sorted concatenation of all FILE(s)...
Hi, This PR started addressing issue #4175, which it fixed but I tried to go a bit further when tinkering with the ways tmpdir option is given. Previously using something...
Bumps [terminal_size](https://github.com/eminence/terminal-size) from 0.2.2 to 0.2.3. Release notes Sourced from terminal_size's releases. v0.2.3 What's Changed Update rustix to 0.36.3 by @messense in eminence/terminal-size#46 Full Changelog: https://github.com/eminence/terminal-size/compare/v0.2.2...v0.2.3 Commits 1483b29 Version 0.2.3...
``` ---- test_date::test_date_set_valid_2 stdout ---- current_directory_resolved: run: /tmp/cirrus-ci-build/target/debug/coreutils date --set Sat 20 Mar 2021 14:53:01 AWST thread 'test_date::test_date_set_valid_2' panicked at 'assertion failed: self.success', tests/common/util.rs:86:9 note: run with `RUST_BACKTRACE=1` environment variable...
``` $ printf "%a\n" 255 0xf.fp+4 $ ./target/debug/coreutils printf "%a\n" 255 printf: %a: invalid conversion specification ``` Here is the description of the floating-point conversions: https://www.gnu.org/software/libc/manual/html_node/Floating_002dPoint-Conversions.html This seems to be...
Floating point conversion flags are defined here: https://www.gnu.org/software/libc/manual/html_node/Floating_002dPoint-Conversions.html Here are a few failing test cases: Flag to always include a plus or minus sign: ``` $ printf "%+3.0f\n" 0 +0...
In GNU `date` version 8.32, ``` $ date --version | head -n 1 date (GNU coreutils) 8.32.199-88562 $ date -u -d "05:00C" +%T 02:00:00 ``` The time zones labeled "A",...
See https://www.gnu.org/software/coreutils/manual/html_node/Floating-point.html#Floating-point For example, ``` $ seq -0x.ep-3 -0x.1p-3 -0x.fp-3 -0.109375 -0.117188 ```