This is caused by, ahem, a syntax error in one of the bash completion scripts (in this case it is the completion script for hping2
). When the terminal starts a program called bash
to handle your terminal session, bash
run its initialization scripts, including the completion script /etc/bash_completion.d/hping2
.
For some reason, that script on your computer is messed up (maybe somebody accidentally edited it), resulting in the syntax error. I think the right way to fix it would be to change that line to
COMPREPLY=( $( compgen -W '02 04 08 10' ) )
(remove the $
at the beginning of the line).
~/.bashrc
and~/.profile
? – quanta Oct 8 '11 at 13:53/etc/bash_completion.d/hping2
around the line 22? – quanta Oct 8 '11 at 14:06