I just moved to Arch Linux with KDE a week ago. Everything worked well until I installed
ibus-qt, after that, whenever I open
konsole, this error appears:
bash: #: command not found
I doubt that
# is a usual command because when I type it in
konsole, nothing happens. But when I run
pacman -Ss #, a ton of things appear.
My question: what is the
# command and what should I do to fix this error?
Here are my
$ cat .bashrc # # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return $ cat .bash_profile # # ~/.bash_profile # [[ -f ~/.bashrc ]] && . ~/.bashrc alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' $ echo $PATH /usr/local/texlive/2015/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
Addition 1: As @terdon suggest, I run
$ grep -FH '\#' ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login ~/.bash_aliases /etc/bash.bashrc /etc/profile /etc/profile.d/* /etc/environment 2>/dev/null
and receive nothing. But the later command give me
$ grep -P '(^|\s+)(\.|source) .' ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login ~/.bash_aliases /etc/bash.bashrc /etc/profile /etc/profile.d/* /etc/environment 2>/dev/null /home/thuyenarc/.bash_profile:[[ -f ~/.bashrc ]] && . ~/.bashrc /etc/bash.bashrc:[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion /etc/profile: test -r "$profile" && . "$profile" /etc/profile: . /etc/bash.bashrc /etc/profile.d/locale.sh: . "$XDG_CONFIG_HOME/locale.conf" /etc/profile.d/locale.sh: . "$HOME/.config/locale.conf" /etc/profile.d/locale.sh: . /etc/locale.conf
Addition 2: I tried renaming the
.bashrc file, then opened
konsole, the error had gone. I suspect that the errors must come from
.bashrc. Any ideas?