[SLL] mystery bash completion

Ted Stern dodecatheon at gmail.com
Tue May 19 11:53:38 PDT 2009


On 19 May 2009 09:22:29 -0700, Adam Monsen wrote:
>
> I was in the process of executing "svn move" when I accidentally hit
> some random key chord; somehow the Bash command line became:
>
> svn mv
> mifos/{AUTHORS,build{-{findbugs.xml,jspc.xml,lib,pmd.xml},.xml},dist,INSTALL,
> lib,LICENSE,p{md,om{_maven_build.xml,.xml}},README,reporting,src,t{arget,est}}AUTHORS
>
> (should be one long line, but I inserted a break before "lib,")
>
> Anyone know how to make Bash build a command line like this, on
> purpose? I've been unable to reproduce this behavior.
>
> * I'm using Fedora 9 with bash-completion
> * I hadn't used this command before, ie: it wasn't in my history
> * I don't think I hit ALT-*, that seems to do something different.
>

I think you must have accessed the Bash readline command
"complete-into-braces", which is accessed via the key combo "M-{".

There is more info about Bash READLINE and setting key combinations
(e.g., via ~/.inputrc) on the bash man page, whence this tidbit came
:-).

Thanks for bringing it to my attention.  It's really cool!

Ted
-- 
 Frango ut patefaciam -- I break so that I may reveal


More information about the linux-list mailing list