You can use the same technique with shell scripts and the getopts builtin command eases your task.
您可以对shell脚本使用同样的技术,getopts内置命令可以简化您的任务。
The type command reports that the ls command is an alias, but it identifies the set command as a shell builtin.
type命令报告指出,ls 命令是一个别名,但是它将set 命令标识为一个 shell 内置命令。
The type command reports that the ls command is an alias, but it identifies the set command as a shell builtin.
type命令报告指出,ls 命令是一个别名,但是它将set 命令标识为一个 shell 内置命令。
应用推荐