I've noticed the same behavior while it works with the original redhat/cenos (3.2.25) shell it will not work with 4.2.6
Example: # vzctl enter 152 will just hang..... Attaching to the bash process within the container shows the following backtrace: (gdb) bt #0 0x00f297f2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00232b23 in __read_nocancel () from /lib/libc.so.6 #2 0x080e296c in rl_getc (stream=0x2c5420) at input.c:471 #3 0x080e2deb in rl_read_key () at input.c:448 #4 0x080d0467 in readline_internal_char () at readline.c:517 #5 0x080d0895 in readline_internal_charloop ( prompt=0x9009288 "\001\033]1;root @ vpnsrv\a\033]2;root @ vpnsrv / \a\002\001\033[01;31m\002vpnsrv \001\033[01;34m\002/ # \001\033[00m \002") at readline.c:579 #6 readline_internal ( prompt=0x9009288 "\001\033]1;root @ vpnsrv\a\033]2;root @ vpnsrv / \a\002\001\033[01;31m\002vpnsrv \001\033[01;34m\002/ # \001\033[00m \002") at readline.c:593 #7 readline ( prompt=0x9009288 "\001\033]1;root @ vpnsrv\a\033]2;root @ vpnsrv / \a\002\001\033[01;31m\002vpnsrv \001\033[01;34m\002/ # \001\033[00m \002") at readline.c:342 #8 0x080695d4 in yy_readline_get () at ./parse.y:1443 #9 0x080636f5 in shell_getc (remove_quoted_newline=1) at ./parse.y: 2231 #10 0x0806610a in read_token (command=<value optimized out>) at ./ parse.y:2908 #11 0x08069bb1 in yylex () at ./parse.y:2517 #12 yyparse () at y.tab.c:2014 #13 0x08060f01 in parse_command () at eval.c:228 #14 0x08060fbc in read_command () at eval.c:272 #15 0x0806116d in reader_loop () at eval.c:137 #16 0x08060bb0 in main (argc=1, argv=0xbfda2134, env=0xbfda213c) at shell.c:749 //Michael