I have a small problem with a script that I am making for Android. I can't seam to get 'EOF' to work in 'mksh'. It is working fine in 'sh' and 'bash', but since 'mksh' is becomming the most used in Android I really need for it to work in all.
cat <<EOF
... lines here ...
EOF
This example will cause the fallowing error
can't create temporary file /sqlite_stmt_journals/mksh.(random): No such file or directory
I have seen others with this issue, but no real solution.
Well, there's this obvious if unpleasant solution: don't use HERE docs; just echo each line to a temporary file. So your example becomes:
EDIT: wait, what? Sure looks like HERE docs work just fine on mksh to me. The following occurs with mksh R39 on a stock Kindle Fire HD (don't mind the perl):
Your example also works as I'd expect.