Artificial intelligent assistant

Bash tab completion adding space to variables I have a number of global variables defined in my .bashrc. export mylogdir=/var/mylogs export myappdir=/opt/myapps I am able to cd $mylogdir. However, if I ls $mylogdir, a space is added on tab completion of $mylogdir: ls $myl[TAB] -> ls $mylogdir<space> Any option or procedure to stop adding the space. The space is a problem as I sometimes want to cat $mylogdir/<space>logfile1.log Tabbing through variables always has `<space>` appended to end. Bash Version=4.2.46

Similar question found here. In summation:

The space at the end is a preference that is set using compopt. You can see the current behaviour with:


compopt


And you can change the behavior by running:


compopt +/-o

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 392fcddccfd37e8873561677b5bb5105