weird bash completion

John5342 john5342 at gmail.com
Mon Aug 29 17:11:28 UTC 2011


On Mon, Aug 29, 2011 at 07:14, Joachim Backes
<joachim.backes at rhrk.uni-kl.de> wrote:
> Having a file in my home called :0-greeter.log
>
> If pressing "rm :<tab>", the bash completes:
>
> rm :\:0-greeter.log
>
> Two questions:
>
> 1. Why the : is escaped at second position?
> 2. Why the : is escaped at all?
>
> That's a known issue?

I discovered the same thing with the '=' symbol in strings. I also
noticed today that if a file has spaces if i type "rm some<tab>" it
completes as "rm some file with spaces" rather than "rm some\ file\
with\ spaces" as it used to.

-- 
There are 10 kinds of people in the world: Those who understand binary
and those who don't...


More information about the test mailing list