Re: Problems with command substitution and command alias
From:
Chet Ramey
Subject:
Re: Problems with command substitution and command alias
Date:
Sat, 21 Nov 2020 13:34:55 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3
On 11/21/20 10:04 AM, Hyunho Cho wrote:
>
> ### 2.
>
> alias-expand-line readline function affects not only command line but also
> heredoc contents
Yes, that is how it works. The alias-expand-line function just takes what
is in the current readline line buffer, identifies tokens that are in a
command position, and alias expands them. It, like most of the readline
key bindings, is not aware of the shell's parsing state.
--
``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/