Re: Error expanding variable containing a directory name
> On Jul 23, 2020, at 12:08 PM, Lutz Adam wrote: > > Bash Version: 5.0 > Patch Level: 17 > Release Status: release > > Description: >The content of $ML is "/media/lad". There's a directory >/media/lad/p24. Typing the command > ls $ML/p24 >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. A recent identical report, plus responses: https://lists.gnu.org/archive/html/bug-bash/2020-05/msg00040.html vq
Re: Error expanding variable containing a directory name
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 > 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/ --> rewrites in-place to... [eschwartz@arch ~]$ ls \$HOME/ [eschwartz@arch ~]$ bash --norc --noprofile bash-5.0$ ls $HOME/ Display all 163 possibilities? (y or n) [...] -- Eli Schwartz Arch Linux Bug Wrangler and Trusted User signature.asc Description: OpenPGP digital signature