dowrite
histsave(int lno, const char *cmd, int dowrite)
if (dowrite && histfh) {
if (dowrite && histfh) {
dowrite(buf + start, pos - start);
dowrite(buf + start, pos - start);
dowrite(buf + start, pos - start);
dowrite(str, strlen(str));