On Wed, Dec 5, 2018 at 12:31 AM Peng Yu <***@gmail.com> wrote:
[...]
Post by Peng Yu$ ./main.sh
set -- 1 '2 3'
set -- '1' '2 3'
set -- '1' '2 3'
Where is it documented?
https://www.gnu.org/software/bash/manual/bashref.html#Shell-Parameter-Expansion,
particularly as quoted below:
${***@operator}
The expansion is either a transformation of the value of parameter
or information about parameter itself, depending on the value of
operator. Each operator is a single letter:
[...]
A
The expansion is a string in the form of an assignment statement
or declare command that, if evaluated, will recreate parameter with
its attributes and value.
[...]
If parameter is ‘@’ or ‘*’, the operation is applied to each
positional parameter in turn, and the expansion is the resultant list.
[...]
The result of the expansion is subject to word splitting and
pathname expansion as described below.
HTH.
--
Best regards,
Tadeus