Open Kev1n8 opened 1 week ago
Cases: printf "% -3.0f" 1 1 % cargo run printf "% -3.0f" 1 1 %(extra spaces here) cargo run printf '%-3.0f' 1` 1 %
printf "% 3.0d" 1 1 % cargo run printf "% 3.0d" 1 1 %(extra spaces here)
However, if the number is negative, the space will be filled with -, then there's no extra padding: cargo run printf "% -3.0f" -1 -1 %
-
related issue: #2774
Also, zero padding is failing: ./target/debug/coreutils printf "%03d" -1 0-1%
Cases: printf "% -3.0f" 1 1 % cargo run printf "% -3.0f" 1 1 %(extra spaces here) cargo run printf '%-3.0f' 1` 1 %
printf "% 3.0d" 1 1 % cargo run printf "% 3.0d" 1 1 %(extra spaces here)
However, if the number is negative, the space will be filled with
-
, then there's no extra padding: cargo run printf "% -3.0f" -1 -1 %related issue: #2774