delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/26/10:29:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Mark Fisher" <mark DOT fisher AT telegraph DOT co DOT uk>
To: <cygwin AT cygwin DOT com>
Subject: Problems with expect logging out (going from 1.1.8 to 1.3.2)
Date: Thu, 26 Jul 2001 15:28:02 +0100
Message-ID: <BPEDKBGBGIMNBPDNIDMIMECHCGAA.mark.fisher@telegraph.co.uk>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal

Hi,

I've been using your excellent product and recently decided to upgrade
to 1.3.2 from 1.1.8.

However, now when I run any of my expect scripts that do any "spawn"
commands, when the script finishes, it logs me out of my bash session.

It doesn't matter how many levels deep I go in bash, when the expect script
finishes, you get "exit" commands all the way up to logging me completely
out.

Here's an example script:
- - - -
#!/usr/bin/bash

expect -f lET.expect
- - - -

here's the expect script [lET.expect]:
- - - -
set cvsRoot [ exec echo {$ETCVSROOT} ]
spawn cvs -d :pserver:user AT server:$cvsRoot login
expect "CVS password: "
send "password\r"
- - - -

I've tried using #!/usr/bin/bash, and #!/bin/expect but whichever way I call
it, the logout always occurs.

I've rolled back to 1.1.8 and the problem goes away, yet the expect
executable hasn't changed between versions, so I can only think it's a
problem with the core code.

Sorry if this isn't the correct area to report bugs.

Yours,
Mark Fisher


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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