Skip to main content
deleted 38 characters in body
Source Link

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this ISGlad I found the answer. Thank you all for your attemptshelp!

Accessing the contents of the contents of a variable.

There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.

There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

Glad I found the answer. Thank you all for your help!

Accessing the contents of the contents of a variable.

There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

added 79 characters in body
Source Link

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.

Accessing the contents of the contents of a variable.
ThereThere are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

enter link description here Committed

Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.
There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

enter link description here Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.

There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

added 79 characters in body
Source Link

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.
There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

enter link description here Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.
There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

enter link description here Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

well,
the answer to dereferecing an array by a name passed as variable (partly resembles pointer)
is (example above re-used):

eval echo "\$$(eval echo "{$gral[@]}")"
with $gral holding the array name

Result:

milk cow budgie pla9ne

You may extend this solution now to iterate bash array (indexed AND associated) content using the index entries.

YEAH! took me much more than 10h net; this IS the answer. Thank you all for your attempts!

Accessing the contents of the contents of a variable.
There are hints leading to the result in abs-guide:
https://tldp.org/LDP/abs/html/abs-guide.html#IVR

enter link description here Committed thanks to Mendel Cooper; so thankful we have this great gift named Advanced Bash-Scripting Guide.

OK,
eval is ugly due to security concerns.
Try to find a better one ...

added 79 characters in body
Source Link
Loading
added 79 characters in body
Source Link
Loading
added 79 characters in body
Source Link
Loading
Source Link
Loading