Subject: Re: ksh: PS1 newline
To: None <netbsd-users@netbsd.org>
From: Petar Bogdanovic <petar.bogdanovic@ipw.unibe.ch>
List: netbsd-users
Date: 01/27/2006 19:10:59
Thanks Claudio!
Claudio M. wrote:
>> export PS1="$(whoami)@$(hostname -s) $(echo \"\\n\")$ "
> No, there is a better way:
>
> P1="$(whoami)@$(hostname -s)$(echo \\n' ')$(echo \\b)$ "
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 ;)?
(\b is backspace, isn't it?)