Bug 7775 - "expect -d" doesn't work
"expect -d" doesn't work
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: tcltk (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-12-12 19:40 EST by Jonathan Kamens
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-03-18 16:08:18 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to fix this bug; should be submitted to Expect maintainers (738 bytes, patch)
2000-02-04 11:15 EST, Jonathan Kamens
no flags Details | Diff

  None (edit)
Description Jonathan Kamens 1999-12-12 19:40:08 EST
The file /tmp/foo.exp contains a single line which reads "spawn cat".

When I run "expect -d /tmp/foo.exp", I get:

expect version 5.28.1
argv[0] = expect  argv[1] = -d  argv[2] = /tmp/foo.exp
set argc 0
set argv0 "/tmp/foo.exp"
set argv ""
executing commands from command file /tmp/foo.exp
spawn cat
parent: waiting for sync byte
parent: telling child to go ahead
parent: sync byte write: broken pipe

This should not be happening.
Comment 1 han.holl 2000-01-04 07:56:59 EST
On my system, expect doesn't work at all !
Recompiling the source RPMs didn't help, but recompiling
_without_ -O2 did !

This is a HP Netserver LC 3 with a 400 Mhz Pentium II.
Comment 2 Elliot Lee 2000-02-04 10:14:59 EST
Expect 5.28.1 isn't distributed with Red Hat Linux, and the version that comes
with RHL does not seem to have this problem.
Comment 3 Jonathan Kamens 2000-02-04 10:43:59 EST
Someone here is confused, and I don't think it's me.

expect-5.28-30.i386.rpm ships with RedHat 6.1  That is what is installed on my
machine:

> rpm -q expect
expect-5.28-30
> rpm --verify expect
>

That version is, indeed, expect 5.28.1:
> expect
expect1.1> exp_version
5.28.1
expect1.2> exit
>

And that version does, indeed, have this problem:

> cat /tmp/foo.exp
spawn cat
> expect -d /tmp/foo.exp
expect version 5.28.1
argv[0] = expect  argv[1] = -d  argv[2] = /tmp/foo.exp
set argc 0
set argv0 "/tmp/foo.exp"
set argv ""
executing commands from command file /tmp/foo.exp
spawn cat
parent: waiting for sync byte
parent: telling child to go ahead
parent: sync byte write: broken pipe
>
Comment 4 Jonathan Kamens 2000-02-04 11:15:59 EST
Created attachment 90 [details]
patch to fix this bug; should be submitted to Expect maintainers
Comment 5 Elliot Lee 2000-02-04 14:10:59 EST
That's funny:
[root@ostrich-deluxe 6.2]# type expect
expect is hashed (/usr/bin/expect)
[root@ostrich-deluxe 6.2]# rpm -qf /usr/bin/expect
expect-5.28-30
[root@ostrich-deluxe 6.2]# expect
expect1.1> exp_version
5.26
expect1.2>
[root@ostrich-deluxe 6.2]#

Why is it telling you 5.28.1?
Comment 6 Jonathan Kamens 2000-02-14 07:11:59 EST
Date: Sat, 5 Feb 2000 21:29:46 -0500
From: Jonathan Kamens <jik@kamens.brookline.ma.us>
To: bugzilla@redhat.com
CC: jbj@redhat.com
Subject: Re: [Bug 7775] Changed - "expect -d" doesn't work

>  Date: Fri, 4 Feb 2000 14:10:20 -0500
>  From: bugzilla@bugzilla.redhat.com
>
>  +Why is it telling you 5.28.1?

A better question would be, "Why is it telling YOU 5.26?"

Did you run "rpm -q -v expect", as I did, to confirm that something
hasn't replaced the expect binary on your machine such that it no
longer matches what was in the RPM?  I strongly suspect that something
has.  Did you try reinstalling the RPM and seeing if that changes the
version of expect installed on your machine?  I strongly suspect that
it will.

If you download and unpack the tcltk source RPM and run "tar tzf
/usr/src/redhat/SOURCES/expect.tar.gz", you will see a bunch of path
names starting with "expect-5.28/".  It is clear that the version of
expect in this RPM is 5.28, not 5.26.

In any case, if you look at the patch that I submitted, it should be
obvious that the patch is correct and should be applied.

  Jonathan Kamens
Comment 7 Jonathan Kamens 2000-02-14 07:12:59 EST
Date: Sun, 6 Feb 2000 16:02:59 -0500
From: Jonathan Kamens <jik@kamens.brookline.ma.us>
To: jik@kamens.brookline.ma.us
CC: bugzilla@redhat.com, jbj@redhat.com
Subject: Re: [Bug 7775] Changed - "expect -d" doesn't work

Last night, I wrote:

>  Did you run "rpm -q -v expect",

I should have said "rpm --verify expect", not "rpm -q -v expect".

  jik
Comment 8 Jeff Johnson 2000-03-18 16:08:59 EST
Fixed (i.e. your patch is in) in tcltk-8.2.3-36.

Note You need to log in before you can comment on or make changes to this bug.