delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/28/15:25:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: RE: echo $?
Date: Thu, 28 Jul 2005 15:24:29 -0400
Message-ID: <017630AA6DF2DF4EBC1DD4454F8EE29705C12420@rsana-ex-hq1.NA.RSA.NET>
From: "Maloney, Michael" <mmaloney AT rsasecurity DOT com>
To: "Eric Blake" <ericblake AT comcast DOT net>, <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6SJPAO2010170


Well, For now I just copied an old version of sh in. Is this going to be
fixed in future builds? I have the same issue with the .18 build as
well.



-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Eric Blake
Sent: Thursday, July 28, 2005 2:04 PM
To: Maloney, Michael; cygwin AT cygwin DOT com
Subject: RE: echo $?

> 
> C:\>sh -i
> sh-3.00$ PS1="$ "
> 
> I also noticed in version 1.5.17 that when executing the shell, the
> default prompt changed from "$ " to "sh-3.00$ ".

It wasn't the cygwin upgrade, but the bash upgrade that changed
your prompt.  /bin/sh used to be ash, which defaults to PS1 of '$ ',
but is now bash, which defaults to PS1 of '\s-\v\$ '.

> 
> I expect the prompt in my script after a command is issued. It just
> indicated that the command has been sent and then I can move on to the
> next command. Obviously now, it get's stuck in the middle.
> 
> Hint - following these directions will help us know more about your
> setup, to see if anything obvious jumps out with your installed
> versions.  As it is, your uname output mentions cygwin-1.5.17,
although
> 1.5.18 is the latest, so you probably have several out-of-date
packages.
> 
> I'll download the latest if you think it would help.

Well, bash-3.0-7 has a known display bug, and bash-3.0-8 requires
cygwin-1.5.18 or newer, so it might help.  But your cygcheck.out
shows some other problems.  First, in Windows, you have SHELL
defined as c:\MKS\mksnt\sh.exe, which is NOT the cygwin shell,
and may be interfering (although the path search only found
c:\cygwin\bin\sh.exe, which is good).  Second, you show
ash-20040127-1 and bash-2.05b-17, even though your earlier
report of the changed prompt would imply that you really have
ash-20040127-3 and bash-3.0-7 or newer; I have no idea what
is really going on, or if you even attached the correct cygcheck.

--
Eric Blake



--
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/


--
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/


- Raw text -


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