command history should not store duplicate consecutive commands