Hi, bash-3.2 on Solaris is suffering from the following bug: http://defect.opensolaris.org/bz/show_bug.cgi?id=3743 (bash hangs sometimes when navigating with the arrow keys)
I tried both 3.2.25 present in latest OpenSolaris as well as custom built 3.2.48 - reproduced in both. It affects all UTF-8 locales (multibyte mode). It can be fixed by backporting (with minor modifications) some code from bash-4.0 - patch is at the end of this message. I'd like to ask for a review and then, perhaps, acceptance as an official bash-3.2 patch. Thanks and regards, hnhn --- bash-3.2/lib/readline/text.c.orig 2009-05-04 08:37:59.310573082 -0700 +++ bash-3.2/lib/readline/text.c 2009-05-04 08:38:58.939276115 -0700 @@ -296,6 +296,12 @@ if (count > 0) { + if (rl_point == rl_end && rl_editing_mode == emacs_mode) + { + rl_ding (); + return 0; + } + point = _rl_find_next_mbchar (rl_line_buffer, rl_point, count, MB_FIND_NONZERO); #if defined (VI_MODE) -- Jan Hnatek jan.hna...@sun.com