Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash tab adds backslash before dollar sign

# 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
Source by www.usn-it.de #
 
PREVIOUS NEXT
Tagged: #bash #tab #adds #backslash #dollar #sign
ADD COMMENT
Topic
Name
8+3 =