mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 19:41:14 -03:00
Implement actual error handling for builtin_printf. Fix the tests.
This commit is contained in:
@@ -17,3 +17,15 @@ printf "abc\rdef\n"
|
||||
printf "Msg1\fMsg2\n"
|
||||
printf "foo\vbar\vbaz\n"
|
||||
printf "\111 \x50" # \u0051 \U00000052
|
||||
|
||||
echo
|
||||
echo "Test escapes"
|
||||
|
||||
# \c escape means "stop printing"
|
||||
printf 'a\cb'
|
||||
echo
|
||||
|
||||
# Bogus printf specifier, should produce no stdout
|
||||
printf "%5" 10 ^ /dev/null
|
||||
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user