bug-bash
[Top][All Lists]
Advanced

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

Re: About `M-C-e` expand result `'` failed


From: Chet Ramey
Subject: Re: About `M-C-e` expand result `'` failed
Date: Sat, 3 Feb 2024 12:07:50 -0500
User-agent: Mozilla Thunderbird

On 1/29/24 12:51 AM, A4-Tacks wrote:

Bash Version: 5.2
Patch Level: 21
Release Status: release

Description:
      input M-C-e (shell-expand-line),
      expand the result containing `'` (single quotation mark) failed.

Repeat-By:
      ```bash
      # echo "$(echo $'ab\n\'cd\nef')"
      ab
      'cd
      ef
      # echo "$(echo $'ab\n\'cd\nef')"  # input M-C-e
      # echo "$(echo $'ab\n\'cd\nef')"bash: bad substitution: no closing `)' in echo 
"$(echo $'ab\n\'cd\nef')"
      ```

Thanks for the report. This was a pretty easy fix in the end, just needed
to make sure the completion/readline flags were propagated through the
expansion code properly.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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