bash-lib icon indicating copy to clipboard operation
bash-lib copied to clipboard

add_list somelist "A string with $var" causes the $var to be eval'ed

Open aks opened this issue 10 years ago • 0 comments

It should be possible to add a string to a list without having the string evaluated.

There may be some use cases where the string should be eval'ed, but the default should be "as-is".

If someone really wants the string to be eval'ed before adding, just do this:

add_list somelist `eval "some string with $var"`

aks avatar Nov 07 '14 05:11 aks