Subject: ksh: PS1 newline
To: None <netbsd-users@netbsd.org>
From: Petar Bogdanovic <p.netbsd@2005.smokva.net>
List: netbsd-users
Date: 01/27/2006 17:54:48
Hello,
I use /bin/ksh on NetBSD 3.0 and my PS1 looks like this:
************************************************
PS1="$(whoami)@$(hostname -s)$(echo '\\n')\$ "
************************************************
but unfortunately, the output looks like this:
************************************************
petar@starling\n$ <type-command-here>
************************************************
while
************************************************
echo "$(whoami)@$(hostname -s)$(echo '\\n')\$ "
************************************************
outputs
************************************************
petar@starling
$
************************************************
Can somebody help me?
Thank you & with kind regards,
Petar