资讯

To fix it, immediately after the call to getopt, simply test the return code: if [ $? != 0 ] ; then ... In the conditional, you probably would put a usage statement and an exit command. For my script, ...