When adding an attribute to a variable with
declare, the original value of the variable is not changed accordingly. How can I actually change the value of the variable according to the attribute declared? Thanks.
$ unset var; var=HELLO; declare -l var; declare -p var; declare -l var="HELLO"