The most simple solution:
example=( a b c d )
Instead of $example_1
, just use ${example[0]}
. At first glance, this may not look like what you want. But keep in mind that BASH is a scripting language with a history (= it has many, many quirks). So while it's not exactly what you think you need, it will work as you expect in most cases.
One reason might be that you think that arrays should start with index of 1 (which is a common beginners mistake that causes lots of problems later). But if you insist, you can insert an empty 0 element to simulate the desired behavior:
example=( "" a b c d )
of if you already have the array:
example=( "" "${example[@]}" ) # prepend empty element to existing array