This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
-----Original Message----- From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Eric Blake Sent: Thursday, July 28, 2005 1:32 PM To: Maloney, Michael; cygwin@cygwin.com Subject: Re: echo $? > I am trying to get my current expect scripts to run with the latest > cygwin but am having problems with the cmd-prompt after issuing the > command above. After the "echo $?", the expected prompt is returned but > with white space before it. I've never seen this before on Windows or > Unix. > What is your $PS1? And what shell (and version) are you running? There is a known bug in bash-3.0-7 with certain prompts displaying incorrectly, so if expect is postprocessing a screen-capture, I could see the prompt display bug being the cause of your concern. Usually, when post-processing shell output, the shell was not run in interactive mode, so that prompts are not part of the shell output; maybe more information about how you are running expect and why you expect (pardon the pun) to see the prompt as part of the output would also be helpful in diagnosing the problem. 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$ ". 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. > Problem reports: http://cygwin.com/problems.html File is attached. -- Eric Blake volunteer cygwin bash maintainer -- 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/
Attachment:
cygcheck.out
Description: cygcheck.out
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |