prompt malfunctions when invoking sh

Corinna Vinschen
Tue Dec 11 00:54:00 GMT 2001

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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

Unsubscribe info:
Bug reporting:

More information about the Cygwin mailing list