You are not logged in.

#1 2016-09-26 01:26:35

hipmanbro
Member
Registered: 2016-09-26
Posts: 3

How does $@ work when appended to a command inside a script?

I first encountered it at https://wiki.archlinux.org/index.php/St … mic_linker.

It seems like magic to me. What is actually going one when you append $@ to the end of a command inside a bash script? Are there other '$_' symbols that do magical things when you append them to the end of a command?

Offline

#2 2016-09-26 01:53:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: How does $@ work when appended to a command inside a script?

It has nothing to do with it being appended to the end of a command.  It is just a shell variable: http://mywiki.wooledge.org/BashGuide/Parameters


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB