Nicolas Boichat

Results 46 issues of Nicolas Boichat

GNU `seq` is a lot faster when passed integer parameters, _without_ format or fixed width options. ``` hyperfine -L seq seq,./target/release/seq "{seq} 0 1 1000000" Benchmark 1: seq 0 1...

U - seq

Decimal parsing is fine: ``` $ env printf "%d\n" 0b100 4 $ cargo run printf "%d\n" 0b100 4 ``` But binary format should not be allowed for floats (just like...

U - printf

In GNU coreutils, negative numbers wrap around (64-bit integer), but `uutils` rejects them: ``` $ env printf "%x\n" -0b100; env printf "%x\n" -0100; env printf "%x\n" -100; env printf "%x\n"...

U - printf

Stacks on top of #7458, I didn't want to change too much there. --- ### uucore: format: num_format: add `fmt` function tests All the other tests directly called format_float_* functions,...

When printing hex number, with 0 padding, the extra zeros go in between `0x` and the digits. We put them at the beginning: ``` env printf "%#06x\n" 123 0x007b $...

U - printf

Looking at C/C++ reference https://en.cppreference.com/w/c/io/fprintf: > If both the converted value and the precision are ​0​ the conversion results in no characters. ``` $ env printf "%.0d\n" 0 $ ./coreutils-main...

U - printf

When parsing very large numbers into `i64`, we should return an error, but _also_ wrap INT64_MIN/MAX value in the error so that value gets printed: ``` $ env printf '%d\n'...

U - printf

`jiff` handling of timezones makes our life so much easier. Also, jiff provides a convenient feature to only embed the timezone database when necessary (e.g. Windows). - Fixes #7497, #7498,...

GNU uptime from procps-ng 4.0.5 has a -p option that we don't support: ``` -p, --pretty show uptime in pretty format ```

U - uptime

GNU uptime from procps-ng 4.0.5 has a `-c` option that we don't support: ``` -c, --container show container uptime ```

U - uptime