shell脚本小技巧

输入参数错误时,退格会出现^H,这个时候只要在脚本顶部加一条语句:stty erase ^h就可以了

#!/bin/sh

stty erase ^h

原文地址:https://www.cnblogs.com/liqing1009/p/4377392.html