I often use git commit -F- <<EOF in order to write an EOF-terminated string as a commit message.
Using
alias commitml="git commit -F- <<EOF"
Works as intended.
However I would like to be able to pass arguments.
So I wanted to define in my .bashrc:
commitml() {
git commit $* -F- <<EOF
}
Which returns as an error when source()ing:
bash: warning: here-document at line 6 delimited by end-of-file (wanted `EOF') bash: /home/yannick/.bashrc: line 8: syntax error: unexpected end of file
Is it possible to somewhat escape the << so that it works just like in the alias?