Re: "CR" in PS1, doesn't reset "col" to 0

2007-01-24 Thread Linda Walsh
Perfect! Wasn't familiar with that escape! Thanks. -l Mike Stroyan wrote: Bash can know about non-printing characters. Check the "PROMPTING" section in "man bash"- \[ begin a sequence of non-printing characters, which could be used to embed a terminal control sequence into t

Re: "CR" in PS1, doesn't reset "col" to 0

2007-01-24 Thread Mike Stroyan
On 1/24/07, Linda Walsh <[EMAIL PROTECTED]> wrote: I recently changed my PS1 prompt to set the title and icon text in the tty frame window to "[EMAIL PROTECTED]"; ... Of course it doesn't know how "non-printing" (or text that doesn't generate a physical position as in the set-icon+title functio

"CR" in PS1, doesn't reset "col" to 0

2007-01-24 Thread Linda Walsh
I recently changed my PS1 prompt to set the title and icon text in the tty frame window to "[EMAIL PROTECTED]"; I wanted to put it in my PS1 as it catches "everything" -- from sudo/su to root (changes to [EMAIL PROTECTED]), to when I type "control-d" to exit a su script or log off a remote syst

Re: Conditional Regexp matching problem in 3.2

2007-01-24 Thread Chet Ramey
Chet Ramey wrote: > Kevin F. Quinn wrote: >> On Tue, 23 Jan 2007 16:55:02 -0500 >> Chet Ramey <[EMAIL PROTECTED]> wrote: >> I don't get this; I must be missing something. If I do, in bash-3.1: >>> I get identical results with fully-patched versions of bash-3.1 and >>> bash-3.2: >> $ /dat