Is there a non-eval way to expand braces in the string of a bash variable? -


normally, if shell input given expansion (e.g. curly braces), bash expand it:

$ a=a{b,c,d}e $ echo $a abe ace ade 

however, if string quoted such expansion doesn't happen, or received variable populated, braces become part of variable string:

$ a="a{b,c,d}e" $ echo $a a{b,c,d}e 

how expand it? if have var value a{b,c,d}e, there native bash way other eval echo $a?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -