[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About `M-C-e` expand result `'` failed
From: |
A4-Tacks |
Subject: |
About `M-C-e` expand result `'` failed |
Date: |
Mon, 29 Jan 2024 13:51:26 +0800 (GMT+08:00) |
Subject: About `M-C-e` expand result `'` failed
Configuration Information [Automatically generated, do not change]:
Machine: aarch64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt
-fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc'
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS
uname output: Linux localhost 4.14.116 #1 SMP PREEMPT Tue Mar 22 15:13:10 CST
2022 aarch64 GNU/Linux
Machine Type: aarch64-unknown-linux-gnu
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')"
```
expected:
```bash
# echo $'ab\n\'cd\nef'
```
or
```bash
# echo ab
'cd
ef
```
- About `M-C-e` expand result `'` failed,
A4-Tacks <=
- Re: About `M-C-e` expand result `'` failed, Zachary Santer, 2024/01/30
- Re: About `M-C-e` expand result `'` failed, Zachary Santer, 2024/01/30
- Re: About `M-C-e` expand result `'` failed, A4-Tacks, 2024/01/30
- Re: About `M-C-e` expand result `'` failed, Zachary Santer, 2024/01/30
- Re: About `M-C-e` expand result `'` failed, Andreas Schwab, 2024/01/30
- Re: About `M-C-e` expand result `'` failed, Zachary Santer, 2024/01/30
- Re: About `M-C-e` expand result `'` failed, Chet Ramey, 2024/01/31
- Re: About `M-C-e` expand result `'` failed, Mike Jonkmans, 2024/01/31