You should just leave out the double quotes around "-n -1" , as that is what preserves the space before the 1 : OPTIND=1 && getopts ":n:" opt -n 1 && echo ...
確定! 回上一頁