This question already has an answer here:
- Alias and functions 2 answers
When I set in
.bashrc something like:
alias="docker stop $(docker ps -aq)"
alias="echo $(ls -l ~)"
obviously never refreshes the command output in $(), so is an string...
So, my question is, there is any way to refresh the command output used as variable ?