Могу ли я избавиться от eval
здесь? Я пытаюсь установить $ current_database
с соответствующей переменной, определяемой вводом пользователя (страна и действие)
# User input
country="es"
action="sales"
# Possible variables for current_database
final_es_sales_path="blahblah/es/sales.csv"
final_en_support_path="yadayada/en/support.csv"
final_it_inventory_path="humhum/it/inventory.csv"
...
current_database=$(eval echo \${final_${country}_${action}_path})