Subject: Re: command-line editing and "standard" shells....
To: None <soren@t.dk>
From: Phil Nelson <phil@cs.wwu.edu>
List: current-users
Date: 03/19/1999 18:27:00
>The man page also says something about inserting magic characters
>to get the line length right or something. Better look for yourself.

I did look.  And with some experimentation, I discovered that
the `pwd` works only at the time one does the PS1= and to get 
the bash prompt goodies, one would have to redefine cd  and
do a bunch of tricks ... so I guess I'm still stuck with bash
to get that functionality.  Also,

>host=`hostname -s`
>PS1='->`pwd`
>$host[!]: '

the \n in that string is ignored by ksh and it appears on one
line.  (at least it did for me.)

-- 
Phil Nelson                    NetBSD: http://www.netbsd.org
e-mail: phil@cs.wwu.edu        !gifs: http://www.gnu.org/philosophy/gif.html
http://www.cs.wwu.edu/~phil