On 1/15/19 9:56 AM, Joerg Schilling wrote:
> Chet Ramey <[email protected]> wrote:
>
>> Which shells don't rescan the alias value in the lexer? AFAICT, that's one
>> of the things everyone does the same way.
>
> A shell that did this would only be able to alias one word by one other word
> and macros like
>
> alias ll='ls -l'
>
> would not work. I am not aware of any shell that behaves this way.
We're clearly not talking about the same thing. Which shell doesn't
logically prepend the alias value to the current input and restart the
scan at the beginning of that new input string? I mean, you said it
yourself:
"all known
implementations stack the alias replacement to the input and re-call the
lexer."
Or are we hung up on the word "stack"?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/