Mail Archives: cygwin/2005/10/31/11:51:22
On Mon, 31 Oct 2005, al1_24 wrote:
> I would like to use ksh as shell but, if most of commands work as
> desired, an ugly prompt is displayed before each line, something like
> "[e]0;wa]n[e[32m]u AT h [e[33m]w[e[0m]n$", until I change the PS1 value.
> Is there a way to get the "user AT host pwd $" prompt inside ksh ?
The default /etc/profile should already have a ksh-specific case for
setting the prompt correctly. Make sure you have an up-to-date
/etc/profile (if you haven't customized it, simply copy
/etc/defaults/etc/profile in its place).
Without further details I can only guess, but it looks like you're
starting ksh from bash (i.e., not as a login shell). This would make ksh
inherit the (incompatible) PS1 from bash. Either start the shell with the
"-l" option, or set PS1 appropriately before/after invoking the shell...
Igor Pechtchanski
Volunteer PDKSH maintainer for Cygwin
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -