Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: bash clear all environment variables 
Shell :: trickbot mikrotik 
Shell :: space as delimiter in cut command 
Shell :: raccoon scanner error command not found 
Shell :: smach viewer usage 
Shell :: eslint src multiple extensions 
Shell :: see postrouting rules linux 
Shell :: fslmaths fill holes 
Shell :: linux cp files with number range 
Shell :: how to move a bunch of files into a folder with mv 
Shell :: run pageant on bootup 
Shell :: docker mac nc command 
Shell :: install mysql majaro 
Shell :: unit gitignore default-2021.dwlt 
Shell :: hide npm fund 
Shell :: Angular ng-upgrade stuck in infinite loop with singleton provider 
Shell :: change mode type cursor 
Shell :: Copying Folder to Server 
Shell :: download ubports-installer 
Shell :: ring execute system commands 
Shell :: linux c programming for loop 
Shell :: Wallpaper kali 
Shell :: ubuntu uninstall google chrome 
Shell :: docker short flags 
Shell :: ansible-playbook limit tag 
Shell :: ubuntu custuom boot iso /etc/grub.d/ 
Shell :: amber vmd command line code 
Shell :: how to show freeswitch registrations from fs_cli 
Shell :: watch bash second 
Shell :: remove home partition centos 6 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =