I am trying to set up some variables using indirect expansion. According to the documentation I’ve read, the set up should be simple: I should be getting “12345”. Instead, the output is “varname”. If I remove the exclamation point, I end up with “qa_ci”, not “12345” This should be a relatively simple solution, so I’m not sure what I’m missing,
Tag: variable-names
Bash command to check if the variable name is valid
and so on the variable name can have only letters , numbers (but not on the beginning),.. and like all the rules for java… Is there any function that I can use ? I do not want to reinvent the wheel… Answer Match the variable name against a regex, like this: