I took a look in the /etc/bash_completion code. <br>I found my answer, partly.<br>I wanted to complete with the possible list of existing screens, when reattaching one (-r|-R): only problem was that everyone has to remember the number screen assigned to the screen wanted, since when the screen is created it gets a name like 424234.name_that_i_chose . So I wanted autocomplete to work even with name_that_i_chose and to fill the command like: &#39;screen -R 424234.name_that_i_chose&#39;<br>
<br>So I managed to fix the sed commands, I noticed too that -r and -R switches where associated with $prev not with $preprev, so if -r|-R was not the latest switch on the commandline it would not get completed. Fixed that too. On Debian squeeze it works as expected.<br>
See the attached patch .<br>See also <a href="http://alioth.debian.org/tracker/?func=detail&amp;atid=413095&amp;aid=311540&amp;group_id=100114">http://alioth.debian.org/tracker/?func=detail&amp;atid=413095&amp;aid=311540&amp;group_id=100114</a><br>
<br>Package devs could you please close this bug?<br><br><div class="gmail_quote">2009/3/11 <a href="mailto:al@sxipper.net">al@sxipper.net</a><span dir="ltr"></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to know if existsted any trick for the GNU screen program.<br><br>I do not know any: it would be nice to complete screen command line with both a list of names of the started screens and their full identifier (eg. 23442.abcde)<br>

<br>The list afaik is gotten through &#39;/bin/screen -l&#39;<br><br>The completion would result in &#39;screen 23442.abcde&#39; in case user writes &#39;screen abc[TAB]&#39; or &#39;screen 234[TAB]&#39;<br><br>Any hints?<br>

<br>Would it be interesting to integrate it in?<br><br><br>Thank you,<br><br>Regards.<br>
</blockquote></div><br>