[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error expanding variable containing a directory name

From: Eli Schwartz
Subject: Re: Error expanding variable containing a directory name
Date: Thu, 23 Jul 2020 13:41:10 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]