FIXED: Incorrect color in Bash text when using "here doc"
Posted: 20 May 2022 11:34
When using a "here doc" in Bash type text, after the end of here doc, the color won't change back.
It's normal in Z shell.
Seems it just can not use "|" or ">" after EOF, it's normal without "|" or ">".
After more test, it turns out that no character is allowed after "EOF".
----------------------
hello world
cat <<EOF | tee /tmp/test
test test test
test test test
EOF
hello
hello world
hello world
It's normal in Z shell.
Seems it just can not use "|" or ">" after EOF, it's normal without "|" or ">".
After more test, it turns out that no character is allowed after "EOF".
----------------------
hello world
cat <<EOF | tee /tmp/test
test test test
test test test
EOF
hello
hello world
hello world