|
From: | Chet Ramey |
Subject: | Re: Bug in TAB (completion)? |
Date: | Fri, 15 Oct 2004 21:07:47 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.3) Gecko/20040910 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |