[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Next word of alias to alias that end with <blank> is not checked for
From: |
Chet Ramey |
Subject: |
Re: Next word of alias to alias that end with <blank> is not checked for alias |
Date: |
Thu, 12 Jan 2023 10:56:33 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 |
On 1/11/23 10:43 PM, anonymous4feedback@outlook.com wrote:
Dear dir or madam,
For the following script:
alias a1='echo '
alias a2=a1
alias foo=bar
a2 foo
bash outputs ‘foo’, instead of ‘bar’.
Bash has never extended the `expand next word' semantics to multiple-level
alias expansion like this, and no one has missed it.
--
``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/