bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] fix bind -X quoting


From: Chet Ramey
Subject: Re: [PATCH] fix bind -X quoting
Date: Wed, 19 Jul 2023 10:47:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 7/18/23 2:22 AM, Grisha Levit wrote:

This patch changes rl_macro_dumper to not untranslate the macro body
when passed a negative print_readably argument.  This is technically an
API change, so maybe not the best fix, though I doubt it will impact any
real usage.

Thanks for the report. It seems like your patch is incomplete, though.
After applying it:

$ bind -x '"\eX": echo "x"'
$ bind -X
"\eX": "echo "x""

We probably need to suppress printing the double quotes around `out' if
print_readably < 0.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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