[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash: remove the format string "%q" in the unicode3.sub

From: address@hidden
Subject: Re: bash: remove the format string "%q" in the unicode3.sub
Date: Wed, 10 Aug 2016 14:42:19 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Hi chet

Thanks for you help.

1. This file:


When executed to the 3 line:


On my target the output was:

    unicode3.sub: line 3: address@hidden: command not found

not the ANSI-C style quoted string like: $'...' in the changed compared file intl.right, the same for the 5 line.


2. The fixed for

    printf %q "$payload"

in intl.right is fine for me.


On 2016年08月09日 22:39, Chet Ramey wrote:
On 8/9/16 3:18 AM, address@hidden wrote:
Hi all

When I run the tests for the bash, the sub-test unicode3.sub of intl.tests

The sub-test unicode3.sub contain the following:

    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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]