命令行中的@是什么意思"bash -c $(curl -L https://www.example.com/install.sh ) @ install"

What is the meaning of @ in command line "bash -c $(curl -L https://www.example.com/install.sh ) @ install"

今天收到一个电报,有人问“@”是什么意思,我也不知道。我问这里也是为了满足自己的好奇心

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install

语法是:

bash -c <thescript> <[=10=]> <> <> etc...

@ 分配给 [=15=] 位置参数。

bash -c 'echo [=11=]' @

通常使用--_

来自男人 bash:

   -c        If the -c option is present, then commands are read from the first non-option argument command_string.  If there  are
             arguments  after the command_string, the first argument is assigned to [=12=] and any remaining arguments are assigned to
             the positional parameters.  The assignment to [=12=] sets the name of the shell, which is used in warning and error  mes‐    
             sages.

例如:

$ bash -c 'invalid(line' @
@: -c: line 1: syntax error near unexpected token `line'
@: -c: line 1: `invalid(line'

$ bash -c 'invalid(line' something_else
something_else: -c: line 1: syntax error near unexpected token `line'
something_else: -c: line 1: `invalid(line'