echo $?

Maloney, Michael mmaloney@rsasecurity.com
Thu Jul 28 17:03:00 GMT 2005


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/



More information about the Cygwin mailing list