How do I teach bash in Ubuntu some curse words?
Posted
by
NitinAb
on Ask Ubuntu
See other posts from Ask Ubuntu
or by NitinAb
Published on 2011-10-28T17:11:04Z
Indexed on
2011/11/18
2:03 UTC
Read the original article
Hit count: 389
When bash encounters an unknown command(word?) it does this :
The program 'hello' can be found in the following packages:
* hello
* hello-debhelper
Try: sudo apt-get install <selected package>
what I would like to know is how this is done so I can edit it or add something before it to cross check the unknown word from a home grown dictionary which would have phrase:reply pairs that can then be sent to output.
I am guilty of not looking enough for it around .. but the few bash guides I tried digging up didn't have anything on this. Maybe I am looking at the wrong places .. any pointers?
And yes I am doing this so every time I type wtf when a program fails , I want something nice thrown back at me...
© Ask Ubuntu or respective owner