ash: fix handling of NULs in $'abc\000def\x00asd'. Closes 9286
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
10
shell/ash_test/ash-quoting/dollar_squote_bash2.tests
Executable file
10
shell/ash_test/ash-quoting/dollar_squote_bash2.tests
Executable file
@@ -0,0 +1,10 @@
|
||||
# Embedded NULs
|
||||
echo $'str\x00'strstrstrstrstrstrstrstrstrstrstrstrstrstrstrstr
|
||||
echo $'str\000'strstrstrstrstrstrstrstrstrstrstrstrstrstrstrstr
|
||||
|
||||
# The chars after '\' are hex 0x80,81,82...
|
||||
echo 80:$'\<5C>'
|
||||
echo 81:$'\<5C>'
|
||||
echo 82:$'\<5C>'
|
||||
|
||||
echo Done:$?
|
Reference in New Issue
Block a user