LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Bash PS weirdness

[ILUG] Bash PS weirdness

John P. Looney jplooney-ilug at online.ie
Fri Apr 21 18:09:13 IST 2000


On Thu, Apr 20, 2000 at 09:39:24PM +0100, Kenn Humborg mentioned:
> IIRC, there is a special marker that you can stick into a prompt string
> to delimit the portion that is non-printing, so readline knows to ignore
> it.  Let's have a look at the bash man page...
> 
> $ man bash
> [...snip...]
> PROMPTING
>        When executing interactively, bash displays the primary prompt PS1 when it is ready to  read
> [...snip...]
>               \[     begin a sequence of non-printing characters, which could be used  to  embed  a
>                      terminal control sequence into the prompt
>               \]     end a sequence of non-printing characters

 Arg. That problem has plagued me for about five years. Mutter.

Kate 

-- 
"The fool must be beaten with a stick, for an intelligent person 
the merest hint is sufficient"                -- Zen Master Greg




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell