Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Christian Feard

    bash script bad substitution error message

    revised and simplified version using the new -n declaration : unset a b c x declare -A a b ; for i in k{1..2} ; do a[a$i]=a_val_$i b[b$i]=b_val_$i ; done ; echo -e "${a[@]}\n${b[@]}" declare -n x declare -a c=( a b ) for x in "${c[@]}" ; do for k in "${!x[@]}" ; do echo -n "$k = " ; echo...
  2. Christian Feard

    bash script bad substitution error message

    Well, I'm new to tek-tips (I've just registered) and I see your question has still no answer. I'm pretty sure you have the answer since, but anyway, here is mine: parameter expansion does not accept nesting (you can't do ${${var}}. You can have an indirection with '!' ( ${!var} ), but in the...

Part and Inventory Search

Back
Top