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: Grisha Levit
Subject: Re: [PATCH] fix bind -X quoting
Date: Wed, 19 Jul 2023 12:47:52 -0400

On Wed, Jul 19, 2023 at 10:47 AM Chet Ramey <chet.ramey@case.edu> wrote:
> 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.

Oh good point.  I guess we'd need to also print a backslash if the
first character of the command is a quote.



reply via email to

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