Phác Chí Huấn
New member
Should I use eval bash?
Answer
In some shells, the most common use is to obtain the value of a variable whose name is not known until runtime. In bash, this is not necessary thanks to the ${! VAR} syntax.
eval is still useful when you need to construct a longer command containing operators
, reserved words, etc.
Answer
In some shells, the most common use is to obtain the value of a variable whose name is not known until runtime. In bash, this is not necessary thanks to the ${! VAR} syntax.
eval is still useful when you need to construct a longer command containing operators
, reserved words, etc.