Hi chet
Thanks for you help.
1. This file:
http://git.savannah.gnu.org/cgit/bash.git/tree/tests/unicode3.sub?h=devel&id=74b8cbb41398b4453d8ba04d0cdd1b25f9dcb9e3
When executed to the 3 line:
"$payload"
On my target the output was:
unicode3.sub: line 3: 5�@3�+�S8����: command not found
not the ANSI-C style quoted string like: $'...' in the changed compared
file intl.right, the same for the 5 line.
http://git.savannah.gnu.org/cgit/bash.git/diff/tests/intl.right?h=devel&id=74b8cbb41398b4453d8ba04d0cdd1b25f9dcb9e3
2. The fixed for
printf %q "$payload"
in intl.right is fine for me.
//dengke
On 2016年08月09日 22:39, Chet Ramey wrote:
On 8/9/16 3:18 AM, dengke...@windriver.com wrote:
Hi all
When I run the tests for the bash, the sub-test unicode3.sub of intl.tests
failed.
The sub-test unicode3.sub contain the following:
payload=$'\065\247\100\063\231\053\306\123\070\237\242\352\263'
"$payload"
printf %q "$payload"
In this situation, the format string "%q" in command printf means that when the
character in the payload is not in {alpha & digit & punctuation & ISO
646(7-bit)}, it
would print the string with ANSI-C style quoted string: $'...' , we can
check the source code
This has already been changed in the devel branch (back in May, 2015), and
the test case and tets output was changed at the same time.