solaris: sed doesn't recognize a line without a newline

This commit is contained in:
Danek Duvall 2013-08-23 16:05:38 -07:00
parent dd1467f6d7
commit 304927ff96

View File

@ -242,7 +242,7 @@ Test issue 3764 (interpreting 'today' and 'yesterday')
>>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d")
>>> dates = open('dates', 'w')
>>> dates.write(today + '\n')
>>> dates.write(yesterday)
>>> dates.write(yesterday + '\n')
>>> dates.close()
$ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code"
$ hg log -d today --template '{desc}\n'