mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
Revert "Revert "Implement builtin_printf in Rust""
This reverts commit 9f7e6a6cd1.
Add additional fixes from code review.
This commit is contained in:
@@ -124,6 +124,15 @@ printf '%d\n' 0g
|
||||
echo $status
|
||||
# CHECK: 1
|
||||
|
||||
printf '%f\n' 0x2
|
||||
# CHECK: 2.000000
|
||||
|
||||
printf '%f\n' 0x2p3
|
||||
# CHECK: 16.000000
|
||||
|
||||
printf '%.1f\n' -0X1.5P8
|
||||
# CHECK: -336.0
|
||||
|
||||
# Test that we ignore options
|
||||
printf -a
|
||||
printf --foo
|
||||
|
||||
Reference in New Issue
Block a user