I am getting an error message every time I ssh into my box or run sudo -i. It looks like this for login:
login as: person
chands@ubuntu-server's password:
-bash: .: filename argument required
.: usage: . filename [arguments]
chands@ubuntu-server:~$
And like this when I execute sudo -i:
chands@ubuntu-server:~$ sudo -i
[sudo] password for chands:
-bash: .: filename argument required
.: usage: . filename [arguments]
root@ubuntu-server:~#
This error doesn't appear when I launch screen, when I use sudo to execute some other commands, when i execute sudo su and not even when I su into chands from root.
I checked ~/.bashrc for both chands and root and /etc/bash.bashrc but all three of them are the defaults and none of them have any errors with . usage.
Also, this error started happening after i removed and purged byobu from my system. I don't know if this has anything to do with the problem, but that's my point of reference before which everything worked fine.
What could be going wrong here? Any ideas anyone?

~/.profile,/etc/profile,/etc/profile.d/*and, if exists,~/.bash_profile– enzotib Aug 11 '11 at 20:59bash -xl. The-lmakes it a login-shell, which is whatsshandsudo -iwill run as well.-xturns on debugging mode, making it echo each command before executing it. Should help in narrowing down where the error is. – geirha Aug 11 '11 at 21:34. $(which byobu-launch). Obviously which didn't return anything since byobu-launch didn't exist and thus.barfed. – chandsie Aug 12 '11 at 1:12bash -xlI saw that the last line being executed in the login process was just.and right before that was `which byobu-launch so I was able to easily pinpoint what was wrong. This combined with enzotib's advice solved the problem! – chandsie Aug 12 '11 at 1:14