echo: fix ENOSPC detection and some iffy code in \NNN handling
function old new delta echo_main 330 302 -28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
testsuite/echo/echo-prints-dash
Normal file
1
testsuite/echo/echo-prints-dash
Normal file
@@ -0,0 +1 @@
|
||||
test "`busybox echo - | od -t x1 | head -n 1`" = "0000000 2d 0a"
|
1
testsuite/echo/echo-prints-non-opts
Normal file
1
testsuite/echo/echo-prints-non-opts
Normal file
@@ -0,0 +1 @@
|
||||
test "`busybox echo -neEZ | od -t x1 | head -n 1`" = "0000000 2d 6e 65 45 5a 0a"
|
3
testsuite/echo/echo-prints-slash_00041
Normal file
3
testsuite/echo/echo-prints-slash_00041
Normal file
@@ -0,0 +1,3 @@
|
||||
# FEATURE: CONFIG_FEATURE_FANCY_ECHO
|
||||
|
||||
test "`busybox echo -ne '\00041z' | od -t x1 | head -n 1`" = "0000000 04 31 7a"
|
3
testsuite/echo/echo-prints-slash_0041
Normal file
3
testsuite/echo/echo-prints-slash_0041
Normal file
@@ -0,0 +1,3 @@
|
||||
# FEATURE: CONFIG_FEATURE_FANCY_ECHO
|
||||
|
||||
test "`busybox echo -ne '\0041z' | od -t x1 | head -n 1`" = "0000000 21 7a"
|
3
testsuite/echo/echo-prints-slash_041
Normal file
3
testsuite/echo/echo-prints-slash_041
Normal file
@@ -0,0 +1,3 @@
|
||||
# FEATURE: CONFIG_FEATURE_FANCY_ECHO
|
||||
|
||||
test "`busybox echo -ne '\041z' | od -t x1 | head -n 1`" = "0000000 21 7a"
|
3
testsuite/echo/echo-prints-slash_41
Normal file
3
testsuite/echo/echo-prints-slash_41
Normal file
@@ -0,0 +1,3 @@
|
||||
# FEATURE: CONFIG_FEATURE_FANCY_ECHO
|
||||
|
||||
test "`busybox echo -ne '\41z' | od -t x1 | head -n 1`" = "0000000 21 7a"
|
Reference in New Issue
Block a user