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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to