This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: prompt malfunctions when invoking sh
- From: Corinna Vinschen <cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 11 Dec 2001 09:33:22 +0100
- Subject: Re: prompt malfunctions when invoking sh
- References: <003801c181fc$26b321a0$e8c6b3d1@HUNG>
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@cygwin.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/