[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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
- Re: About `M-C-e` expand result `'` failed, (continued)
- Re: About `M-C-e` expand result `'` failed, Koichi Murase, 2024/02/04
- Re: About `M-C-e` expand result `'` failed, Martin D Kealey, 2024/02/04
- Re: About `M-C-e` expand result `'` failed, Chet Ramey, 2024/02/06
- Re: About `M-C-e` expand result `'` failed, Mike Jonkmans, 2024/02/06
- Re: About `M-C-e` expand result `'` failed, Chet Ramey, 2024/02/07
- Re: About `M-C-e` expand result `'` failed, Chet Ramey, 2024/02/06
- Re: About `M-C-e` expand result `'` failed, Zachary Santer, 2024/02/06
- Re: About `M-C-e` expand result `'` failed, Chet Ramey, 2024/02/06
- Re: About `M-C-e` expand result `'` failed, Zachary Santer, 2024/02/06
Re: About `M-C-e` expand result `'` failed, Chet Ramey, 2024/02/06
Re: About `M-C-e` expand result `'` failed,
Chet Ramey <=