getopts 是 shell 内置的命令,
而 getopt 是外置命令,位于 /usr/bin/getopt
https://man7.org/linux/man-pages/man1/getopts.1p.html
确实打破了我的想象。
【 在 Bolyai 的大作中提到: 】
: 比如 /usr/bin/getopt 并不能处理长选项,而是和 getopts 差不多
: GETOPT(1) BSD General Commands Manual GETOPT(1)
: NAME
: ...................
--
修改:Bolyai FROM 14.112.219.*
FROM 14.112.219.*