[lxc-users] bash: __vte_promt_command: command not found
Christian Evans
frodox at zoho.com
Wed Jul 23 11:42:31 UTC 2014
Hi all.
I've found have some time to test new lxc release.. and I will break results into several messages.)
I use lxc-1.0.5 (31098f8b9) from git on CentOs 7.0 (14.06).
So, what I did :
---
host $ git clone ...
...
host $ ./configure --prefix=/usr --enable-capabilities --enable-seccomp
...
host # lxc-create -n first -t centos
...
host # lxc-start -n one -d
host # lxc-attach -n first
bash: __vte_promt_command: command not found
[root at first /]# |
---
Well, first of all, I'm confused by this error message from bash. And it's appear after every command
(because of meaning of PROMPT_COMMAND, actually ).
I have found, that it comes from /etc/bashrc (inside container). There are lines, like
15 xterm*|vte*)
16 if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
17 PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
18 elif [ "${VTE_VERSION:-0}" -ge 3405 ]; then
19 PROMPT_COMMAND="__vte_prompt_command"
20 else
21 PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
22 fi
and I can't understand, why do we need lines 18-19 ?
And what is the magic number 3405 ? =)
Btw, my host
host$ echo $VTE_VERSION
3406
so, PROMPT_COMMAND="__vte_prompt_command"
and it leads to such error, but... what is it? :)
I commented lines 18-19 and it works fine enough. I can send a patch, but I don't know when and why this lines were added
---
Regards,
Christian.
More information about the lxc-users
mailing list