Subject: Re: ksh: PS1 newline
To: None <netbsd-users@netbsd.org>
From: Claudio M. <claudio@netcat.it>
List: netbsd-users
Date: 01/28/2006 00:21:44
> May I ask, why you print a blank space with $(echo \\n' ') and then 
> delete it with $(echo \\b) ? Why not just $(echo \\n) (besides the fact, 
> that it doesn't work ;)?
Because after the escape characted '\' the newlines will be "stripped".
So the next line will be interpreted as part of the command.

See the "Quoting" section of the ksh man page.


> (\b is backspace, isn't it?)
Yes.


Sorry for my english!


Claudio M.


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU d-@ s: a--> C++(+++) UB++>$ P+> !L E--- W++(+++)
N+@ o--> K? w+@> O-@> M- V? PS+@ PE+@ Y+ PGP> t(-)@ 5?
X+ R? tv-- b+> DI-- D? G e+@> h--@> r y*
------END GEEK CODE BLOCK------