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: alex xmb ratchev
Subject: Re: [PATCH] fix bind -X quoting
Date: Wed, 19 Jul 2023 17:28:50 +0200

On Wed, Jul 19, 2023, 4:48 PM Chet Ramey <chet.ramey@case.edu> wrote:

> 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.
>

dunno the context .. \" is another way
if has more than one word to preserve

greets

-- 
> ``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]