On 30 May 2012 01:31, David Korn <[email protected]> wrote:
> cc: [email protected] [email protected]
> [email protected]
> Subject: Re: Re: Re: [ast-developers] RFE: Extend ksh93 printf %q to accept
> modifiers
> --------
>
> I have added %(html)q and %(url)q to the next release.
I think there was a misunderstanding for using %(...)q for egrep
expressions and similar things. The goal was to QUOTE strings that
they retain any all characters in the target format in their literal
meaning and not to CONVERT them like the current implementation for
%(ere)q does.
As an example, %(ere)q should quote special characters like (, ), [,
], {, }, \ with a preceding backslash so they are retain their literal
meaning:
printf '%(ere)q' 'hello(world)'
hello\(world\)
%(csv)q, %(html)q and %(url)q work as expected but %(pattern)q and
%(ere)q need to be changed to just quote the values and not convert
them into something different.
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers