Cat with heredoc does not work in zsh shell
cat, heredoc, shell, zsh
Solution
Here is another way to write it:
cat <<eos > filename
foo bar baz
eos
That works in zsh.
Problem
When I try ``` cat > myfile << EOF TEST TEXT EOF ``` I just get an empty file. The same using `echo` command. What's going on? I can only think about something conflicting in the `.zshenv` profile file, but I have no idea about what it could be... I am using `zsh 4.3.6 (x86_64-suse-linux-gnu)`. Update It now works with `zsh 5.0.5 (x86_64-suse-linux-gnu)`