Re: [Help-bash] Is there a syntax to declare -p address@hidden
From:
Tadeus Prastowo
Subject:
Re: [Help-bash] Is there a syntax to declare -p address@hidden
Date:
Wed, 5 Dec 2018 15:40:15 +0100
On Wed, Dec 5, 2018 at 12:31 AM Peng Yu <address@hidden> wrote:
[...]
> $ ./main.sh
> set -- 1 '2 3'
> echo ${@@A}
> set -- '1' '2 3'
> echo "${@@A}"
> set -- '1' '2 3'
>
>
> Where is it documented?https://www.gnu.org/software/bash/manual/bashref.html#Shell-Parameter-Expansion,
particularly as quoted below:
address@hidden
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 address@hidden 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