man bash: you will find below
-- If no arguments follow this option, then the positional parameters are unset. Otherwise, the positional parameters are set to
the args, even if some of them begin with a -.
for example:根据IFS重设位置参数
-- If no arguments follow this option, then the positional parameters are unset. Otherwise, the positional parameters are set to
the args, even if some of them begin with a -.
for example:
- june@~ 01:42:16>
- line=sadasd:ddddd; IFS=: ; set -- $line; echo $1; echo $2
- sadasd
- ddddd
- june@~ 01:42:26>