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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to