bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newlines resulting from alias expansion are ignored by here-document pro


From: gldrk
Subject: Newlines resulting from alias expansion are ignored by here-document processing
Date: Thu, 30 Nov 2023 11:45:28 +0300

$ 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]