su - user Hang!!!! Bug in reading history

2013-07-08 Thread Geng Sheng Liu
Hi, All I met a bug in bash when dealing with one case about bash history. ~~ Setps to reproduce the problem: create a new user like jack. setup the 4 factors to reproduce the problem, user with the following condition would encount this proble

Re: su - user Hang!!!! Bug in reading history

2013-07-08 Thread Chet Ramey
On 7/8/13 1:50 AM, Geng Sheng Liu wrote: > Hi, All > > I met a bug in bash when dealing with one case about bash history. Thanks for the report. This will be fixed in the next bash/readline release. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars lon

Re: typeset -p & manpage on it are confusing w/rt funcs

2013-07-08 Thread Chet Ramey
On 6/6/13 6:48 PM, Linda Walsh wrote: > > I wanted to test to see if a function was defined and looking at > typeset in the bash man page, I see > typeset ... The -p option will > display the attributes and values of each name. When -p is used > with name arguments,

Re: typeset -p & manpage on it are confusing w/rt funcs

2013-07-08 Thread Linda Walsh
Chet Ramey wrote: On 6/6/13 6:48 PM, Linda Walsh wrote: I wanted to test to see if a function was defined and looking at typeset in the bash man page, I see typeset ... The -p option will display the attributes and values of each name. When -p is used with name

Re: PS1 multiline with colors

2013-07-08 Thread Linda Walsh
Greg Wooledge wrote: normal=$(tput sgr0) red=$(tput setaf 1) green=$(tput setaf 2) ... --- BTW If you ever trace your code with "-x", tracing through the above will change your terminal text color. You can get around that by using read: read _CRST < <(tput sgr0) #Reset read _CRed < <(