Bash * and @ Relative to Array Elements

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

* and @ are bash syntax elements that tokenize arrays. They are used to process command line argument ($*, $@ and "$@"), values for indexed arrays, keys and values for associative arrays, etc.

The difference between these two syntax elements becomes apparent when the array elements contain spaces.

...*

...@

"...@"