On 7/23/20 12:08 PM, Lutz Adam wrote: > Description: > The content of $ML is "/media/lad". There's a directory > /media/lad/p24. Typing the command > ls $ML/p24<TAB-key> > a backslash is put befor "$" and the line looks like: > ls \$ML/p24/ > Typing the ENTER key shows: > ls: cannot access '$ML/p24/': No such file or directory. > > Repeat-By: > Create a variable containing a directory name. Put a > subdirectory there under. > Type a "$" and the variable followed by a slash, the name of the > subdirectora and the TAB-key. > > > The OS is Linux Mint 20
The built-in bash tab completion actually does this okay. Are you using the bash-completion project addon functionality? [eschwartz@arch ~]$ ls $HOME/<TAB> --> rewrites in-place to... [eschwartz@arch ~]$ ls \$HOME/ [eschwartz@arch ~]$ bash --norc --noprofile bash-5.0$ ls $HOME/<TAB> Display all 163 possibilities? (y or n) [...] -- Eli Schwartz Arch Linux Bug Wrangler and Trusted User
signature.asc
Description: OpenPGP digital signature