This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ugly prompt with ksh


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@h [e[33m]w[e[0m]n$", until I change the PS1 value.
> Is there a way to get the "user@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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]