Closed MartinHelmut closed 3 years ago
${}
syntaxThe ${}
syntax will conflict with regular bash syntax, e.g. echo "${something}"
, making parsing harder. Also, it will not be possible to guess the user intend, if this should be an environment variable or a Litr variable. A different syntax is needed.
Use %{}
syntax. This does not interfere with existing Bash syntax, can be echoed in or outside a string, but is still familiar inside the general topic of string interpolation.
To escape this sequence use \%{}
.
As seen in https://github.com/krieselreihe/litr/wiki/Setup#example variables can be used with
${...}
inside scriptsOpen questions
${...}
really a good choice?