I've added some lines to ~/.bash_aliases yesterday... And today my gnome-terminal started showing me this expression in the beginning, just before the prompt.

/home/igoru /etc/bash_completion
igoru@igoru-ubuntu:

Those are the lines I added:

alias realias='vim ~/.bash_aliases; source ~/.bash_aliases'
alias ..='cd ..'
alias .='echo $PWD'
alias canhaz='sudo apt-get install'

What is happening?
Is this expression really related to those aliases, or what?

link|improve this question

69% accept rate
1  
It is easy to comment these out and recheck fast :-) – nik Aug 21 '09 at 4:01
1  
That will help you answer your last question and recollect anything else you may have done. – nik Aug 21 '09 at 4:02
what? is it meaningful for this question? :S – Igoru Aug 21 '09 at 4:27
feedback

1 Answer

up vote 10 down vote accepted

"." is a synonym for "source." Some line in some file is trying to source /etc/bash_completion after you have aliased it to "echo $PWD."

I think realiasing the bash builtins is a bad idea. Too many scripts will depend on it to act the original way. Consider "." a reserved keyword.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.