Fix shell history minor bug

uboot also have this problem