首页 > 技术文章 > shell脚本小技巧
liqing1009 2015-03-30 10:46 原文
输入参数错误时,退格会出现^H,这个时候只要在脚本顶部加一条语句:stty erase ^h就可以了
#!/bin/sh
stty erase ^h