What does this do in bash: [@]?

Tom Mitchell niftyubuntu at niftyegg.com
Fri Jul 29 16:10:14 UTC 2022


On Fri, Jul 29, 2022 at 09:04 <ubuntu at howorth.org.uk> wrote:

> bo.berglund at gmail.com wrote:
> > I am trying to understand the working of a script example I am trying
> > to adapt but cannot think up a useful google search command to get to
> > a description....
> >
> > In the script there is this:
> >
> > URL=('https://tokens.somesite.com' + long stretch of arguments)
> >
> > Then later:
> > INPUT=$(curl -qsS "${URL[@]}"  | some processing stuff)
> >
> > What I do not know is what the [@] in "${URL[@]}" does???
> >
> > Where can I read bout this?
>
> man bash and search within for [@] ?


Google these to find the page I copy/pasted from.
$@ Values of the arguments that are passed in the program. This will be
much helpful if we are not sure about the number of arguments that got
passed.
$# Total number of arguments and it is a good approach for loop concepts.
-- 
Tinny keyboard.. Mobile ... I am
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220729/68368a53/attachment.html>


More information about the ubuntu-users mailing list