What is the double dash in this bash script excerpt doing

前端 未结 3 1147
天涯浪人
天涯浪人 2021-01-07 03:26

I\'m looking at an excerpt of bash and I\'m trying to understand what exactly is happening here, particularly in the COMPREPLY assignment:

 case         


        
3条回答
  •  别那么骄傲
    2021-01-07 04:10

    The double dashes end the argument portion in getopt_long. From the manual.

    The special argument "--" forces an end of option-scanning regardless of the scanning mode.

    https://linux.die.net/man/3/getopt_long

    The double semi colons end a case branch.

提交回复
热议问题