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)
Here is another way to write it:
cat <<eos > filename
foo bar baz
eos
That works in zsh.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With