[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About `M-C-e` expand result `'` failed
From: |
Zachary Santer |
Subject: |
Re: About `M-C-e` expand result `'` failed |
Date: |
Tue, 30 Jan 2024 09:43:37 -0500 |
On Tue, Jan 30, 2024 at 9:11 AM Zachary Santer <zsanter@gmail.com> wrote:
> $ var='foo'
> $ echo "$( echo '${var}' )" # enter
> ${var}
> $ echo "$( echo '${var}' )" # M-C-e
> $ echo ${var} # enter
> foo
> # Would've expected: echo "\${var}"
> $ echo $( echo '${var}' ) # enter
> ${var}
> $ echo $( echo '${var}' ) # M-C-e
> $ echo ${var} # enter
> foo
> # Would've expected: echo \${var}
> $ echo '${var}' # enter
> ${var}
> $ echo '${var}' # M-C-e
> $ echo ${var} # enter
> foo
> # Would've expected: echo '${var}'
> $ echo "${var}" # enter
> foo
> $ echo "${var}" # M-C-e
> $ echo foo
> foo
> # Would've expected: echo "foo"
>
For that matter:
$ echo \${var} # enter
${var}
$ echo \${var} # M-C-e
$ echo ${var} # enter
foo
# Would've expected: echo \${var}
There's no way this is the intended behavior, right?
- About `M-C-e` expand result `'` failed, A4-Tacks, 2024/01/29
- 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 <=
- 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