delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/28/12:56:07

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: echo $?
Date: Thu, 28 Jul 2005 12:55:32 -0400
Message-ID: <017630AA6DF2DF4EBC1DD4454F8EE29705C1241C@rsana-ex-hq1.NA.RSA.NET>
From: "Maloney, Michael" <mmaloney AT rsasecurity DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6SGu6Xa030419

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.

Example:
$ echo $?  
0
 $

The prompt($) has a space before it which is making Expect not recognize
it because my script is expecting just "$ " and not " $ ".

CYGWIN_NT-5.1 POPCORN 1.5.17(0.129/4/2) 2005-05-25 19:38 i686 unknown
unknown Cygwin

Any help???

Thanks,
Mike

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