I just moved to Arch Linux with KDE a week ago. Everything worked well until I installed ibus-unikey and 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 .bashrc, .bash_profile and PATH
$ 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?
#somewhere.#, at the start of a new token (ie, after whitespace), starts a comment until the end of the line. So this is definitely odd. The only thing I can think of is thatpaman -Ss #is trying to execute a command#; but that would be done outside of the shell. The other possibility is that something tampered with IFS.-eparameter directly to exec rather than via the shell.ibus-qt, notibus-qt4.env SHELLOPTS=xtrace PS4='${BASH_SOURCE[*]}:$LINENO: ' konsoleto see where that error occurs.