[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newlines resulting from alias expansion are ignored by here-document
From: |
alex xmb sw ratchev |
Subject: |
Re: Newlines resulting from alias expansion are ignored by here-document processing |
Date: |
Tue, 5 Dec 2023 19:32:36 +0100 |
On Tue, Dec 5, 2023, 17:22 Chet Ramey <chet.ramey@case.edu> wrote:
> On 11/30/23 3:45 AM, gldrk wrote:
> > $ cat test
> > alias 'foo=cat <<EOF
> > hello'
> > foo
> > world
> > EOF
> > $ sh test
> > world
> > test: line 5: hello: command not found
> >
> > My reading of the upcoming POSIX revision
> > (https://www.austingroupbugs.net/view.php?id=953#c4214)
> > is that they should be treated just like newline tokens coming from the
> > source.
>
> Thanks for the report. Reading here-documents from aliases is a known
> issue. There will be an initial fix in the next devel branch push.
>
i hope u rather extend than limit , the aliases stuff
Chet
> --
> ``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/
>
>