# to stop bash tab-completion escaping $ characters, set the direxpand option:
shopt -s direxpand
# to make this always happen, add it to your .bashrc or another login script:
echo 'shopt -s direxpand' >> .bashrc
# Thanks to AskUbuntu user @karsten who commented on a closed question years later
# to provide the answer and a link to an explainer!
# https://askubuntu.com/questions/141367/tab-completion-causes-dollar-signs-to-be-escaped#comment1817559_199477