func appendHistory(state *liner.State, item string) { state.AppendHistory(item) // ignore consecutive dups, blank line, space }