mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -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
|
||||
|
||||
@@ -7,7 +7,10 @@ a hello
|
||||
5 10
|
||||
100
|
||||
%"\nxy
|
||||
abc
|
||||
abc
|
||||
def
|
||||
Msg1Msg2
|
||||
foobarbaz
|
||||
foobarbaz
|
||||
I P
|
||||
Test escapes
|
||||
a
|
||||
|
||||
Reference in New Issue
Block a user