Secrets of the Bash

cog on 2004-07-08T14:58:31

I came across this:

:()} :|:&};:

I can't really say for sure what it does (on the bash), but I do know it is *not* recommended.

What I'd like to know is:

a) What does it do, and how?

b) What should I read in order to understand these things better? Would man bash suffice?

TIA

jac


Got it

cog on 2004-07-08T15:24:40

At least I think so... :-)

You define a function like this:

name ( ) { list ; }

So, the first thing it is doing is defining a function named : that does :|:& ...

Then, it runs that function...

And then, I have to use brute force (or better yet, the magic button) to restore (ab)normality... :-)

Am I right? :-)