Another way to do it.
 printf "\x9\x9sssh \$ENid" | ssh localhost bash -i
Regards.

      De : Vincent Leduc <unix.sy...@yahoo.fr>
 À : "bug-bash@gnu.org" <bug-bash@gnu.org> 
 Envoyé le : Vendredi 26 décembre 2014 15h08
 Objet : bash complete.c
   
Hi,

Dont know if it's the right place to post, just saw this threw bash -i. 

# grep "Display all" lib/readline/complete.c
      fprintf (rl_outstream, "Display all %d possibilities? (y or n)", len);

sh-3.2# ssh localhost bash -i 2>/dev/null
root@localhost's password:
[tab][tab][enter]
Display all 1797 possibilities? (y or n)[enter]
$ENsh

bash --version ;
GNU bash, version 3.2.57(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

Regards,
Vincent Leduc.



  

Reply via email to