[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No filename expansion in shell-expand-line
From: |
Chet Ramey |
Subject: |
Re: No filename expansion in shell-expand-line |
Date: |
Fri, 12 Jan 2024 12:11:52 -0500 |
User-agent: |
Mozilla Thunderbird |
On 1/12/24 3:28 AM, Martin Schulte wrote:
Hello,
from the documentation I understand that shell-expand-line (ESC CTRL-E) should
do alias expansion, history expansion, brace expansion, tilde expansion, shell
parameter expansion, command substitution, arithmetic expansion, process
substitution (if supported by the operation system), word splitting, filename
expansion and quote removal.
It doesn't do filename expansion and never has, going all the way back
to when it was first added in 1989, and the current man page doesn't
include it in the enumerated list of expansions it performs:
shell-expand-line (M-C-e)
Expand the line by performing shell word expansions. This per-
forms alias and history expansion, $'string' and $"string" quot-
ing, tilde expansion, parameter and variable expansion, arith-
metic expansion, word splitting, and quote removal. See HISTORY
EXPANSION below for a description of history expansion.
This is an update from the bash-5.2 man page, the result of
https://lists.gnu.org/archive/html/bug-bash/2023-03/msg00031.html
There's a separate bindable command to perform filename expansion.
--
``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