How can I specify a multiline commit message for mercurial on the command line?
hg commit -m \"* add foo\\n* fix bar\"
does not work. The log
In bash (since version 2.0):
hg commit -m $'foo\nbar'
(I.e. put a dollar sign before an opening single quote to make it parse escape sequences (like \n) within the string — note that it doesn't work with double quotes.)
\n)