Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 31 Oct 2005 11:51:08 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: al1_24 cc: cygwin AT cygwin DOT com Subject: Re: Ugly prompt with ksh In-Reply-To: <351cd7610510310822h6a7b6684o@mail.gmail.com> Message-ID: References: <351cd7610510310822h6a7b6684o AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/