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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -