Share

Expect.pm

Tracker: Bugs

5 expect() escaping issues - ID: 2334738
Last Update: Comment added ( nobody )

(Forwarded by jh@debian.org, Debian BTS #426192)

joey@kodama:~>perl -we 'use strict; use Expect; my $e=Expect->spawn("ls");
$e->expect(0, [q{[} => sub {}])'
Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ()/ at
/usr/share/perl5/Expect.pm line 707.
joey@kodama:~>perl -we 'use strict; use Expect; my $e=Expect->spawn("ls");
$e->expect(0, ["-re" , q{[} => sub {}])'
Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE ()/ at
/usr/share/perl5/Expect.pm line 707.

According to the documentation, the '[' in the first expression should not
be interpreted as
a regexp.


Nobody/Anonymous ( nobody ) - 2008-11-23 20:57

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-06-22 19:41
Sender: nobody

It's still an issue in version 1.21 also.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.