help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Different completion behavior for ':' when there are oth


From: Chris Down
Subject: Re: [Help-bash] Different completion behavior for ':' when there are other files or not
Date: Thu, 9 May 2013 13:01:38 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On 2013-05-08 23:00, Peng Yu wrote:
> In /tmp/a, there is only ':', but nothing else.
>
> /tmp/a$ mkdir :
> /tmp/a$ cd :<TAB>
>
> The command completion of the above one becomes the following (which
> is not correct).
>
> /tmp/a$ cd :\:/
>
> But if I create an addition file, then the command completion of 'cd
> :<TAB>' will work correctly.
> /tmp/a$ touch xxx.txt

I can reproduce this, with the caveat that in my case it *doesn't* fix itself
when there are other files:

    $ echo $BASH_VERSION
    4.2.45(2)-release
    $ mkdir :
    $ cd :\:/
    bash: cd: ::/: No such file or directory
    $ > foo
    $ cd :\:/
    bash: cd: ::/: No such file or directory

Chris

Attachment: pgpTP4iuNoA6q.pgp
Description: PGP signature


reply via email to

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