commit: dc6923434f5a5eeaea8c429321ecbfd47e5e27fe
parent a42f65fa382c6d619664633e194d3fe3b420d8d0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 12 Apr 2025 20:14:14 +0200
test-cmd/echo: test unspecified backlash escape as well
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test-cmd/echo.sh b/test-cmd/echo.sh
@@ -40,8 +40,8 @@ t_args 'e:newline' 'foo
t_args 'en:newline' 'foo
' -en 'foo\n'
-t_args 'e:simple_esc' "$(printf %b '\a\b\f\n\r\t\v')
-" -e '\a\b\f\n\r\t\v'
+t_args 'e:simple_esc' "$(printf %b 'A\a\b\f\n\r\t\v\\')
+" -e '\A\a\b\f\n\r\t\v\\'
t_args 'e:clear' 'foo' -e 'foo\cbar' 'baz'
@@ -59,8 +59,8 @@ t_file 'en:all_bytes' "$WD"/test-cmd/inputs/all_bytes -en "$all_bytes_octal"
t_args 'E:newline' 'foo\n
' -E 'foo\n'
-t_args 'E:simple_esc' '\a\b\f\n\r\t\v
-' -E '\a\b\f\n\r\t\v'
+t_args 'E:simple_esc' '\A\a\b\f\n\r\t\v\\
+' -E '\A\a\b\f\n\r\t\v\\'
t_args 'E:clear' 'foo\cbar baz
' -E 'foo\cbar' 'baz'