linux – 设置位置参数时使用 – 和 – 作为选项之间的区别
发布时间:2020-12-13 23:56:48 所属栏目:Linux 来源:网络整理
导读:在man bash中提到set有两个选项 – 和 – 我想知道在设置位置参数时使用 – 和 – 作为选项时是否存在任何差异. 当我们在设置位置参数时使用它时,我找不到man bash中提到的任何重大差异. 解决方法 4.1.5(1)的bash(1)手册页说: -- If no arguments follow th
在man bash中提到set有两个选项 – 和 –
我想知道在设置位置参数时使用 – 和 – 作为选项时是否存在任何差异. 当我们在设置位置参数时使用它时,我找不到man bash中提到的任何重大差异. 解决方法
4.1.5(1)的bash(1)手册页说:
-- If no arguments follow this option,then the positional parameters are unset. Otherwise,the positional parame |