delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/11/03:35:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 11 Dec 2001 09:33:22 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: prompt malfunctions when invoking sh
Message-ID: <20011211093322.T740@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <003801c181fc$26b321a0$e8c6b3d1 AT HUNG>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <003801c181fc$26b321a0$e8c6b3d1@HUNG>; from gcruzicka@earthlink.net on Mon, Dec 10, 2001 at 08:27:24PM -0800

On Mon, Dec 10, 2001 at 08:27:24PM -0800, Gene C. Ruzicka wrote:
> when i use the bourne shell (sh,)  the literal characters 
> that are used to form  the prompt (i.e., environmental 
> variable $PS1,) which is set in /etc/profile on my
> system, .are displayed instead.  for example, on
> my windows 2000 professional system, i see
> the following gibberish:
> 
> \[\033]0;\w\007
> \033[32m\]\u@\h \[\033[33m\w\033[0m\]
> $ 
> 
> can something be done to fix this? note: this
> happens only on sh; no problems in bash,

Sure, the default login shell is bash.  The prompt set in /etc/profile
has never been made with ash in mind.  Why don't you just change PS1 in
your own ~/.profile?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019