Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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