bug-bash
[Top][All Lists]
Advanced

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

Re: Bug in TAB (completion)?


From: principiante
Subject: Re: Bug in TAB (completion)?
Date: Sat, 16 Oct 2004 15:16:17 +0200
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Chet Ramey wrote:
principiante wrote:

Hi, please try the following:

- fire up an xterm and create an empty directory
  # mkdir empty

- go inside and try to complete a filename

  # cd empty
  # ls a<TAB>

  Nothing happens. Ok.

- now open another xterm and put a filename
  called aaa in the directory empty

- go back to the previous xterm: you should have the line
  with the cursor after the "a"

  # ls a

- press again <TAB> to complete. I get

  aaa
  # ls a

  instead of

  # ls aaa



Can you explain this?


Sure.  Readline only inserts completions (or a unique prefix) on
the first tab.  The second and subsequent tabs list possible completions
sharing a unique prefix.  If you execute another readline command
between successive tabs, you'll get the completion you want.




Thanks.

8-P


reply via email to

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