Skip Menu |

This queue is for tickets about the WWW-Mechanize-Shell CPAN distribution.

Report information
The Basics
Id: 2389
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Shell

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.13
Fixed in: (no value)



Subject: browsercmd functionality appears broken
Hello, I'm using version .13, and the "browsercmd" functionality doesn't appear to be working. Here's what happens: http://cascade.skatepark.org/demo.cgi>set browsercmd "galeon -n %s" Unknown option 'browsercmd' Valid options are : cookiefile: cookies.txt watchfiles: 1 dumprequests: 0 autorestart: 0 autosync: 0 useole: 0 Thanks, Mark
From: mark [...] summersault.com
Here's a patch for this issue. This fixes it on my system with Perl 5.8.0. It looks like the inlined regular expression check was causing a problem: --- Shell.pm.orig 2003-04-13 21:46:01.000000000 -0500 +++ Shell.pm 2003-04-13 22:28:46.000000000 -0500 @@ -147,13 +147,14 @@ $self->{history} = []; + my $useole if ($^O =~ /mswin/i); $self->{options} = { autosync => 0, autorestart => 0, watchfiles => defined $args{watchfiles} ? $args{watchfiles} : 1, cookiefile => 'cookies.txt', dumprequests => 0, - useole => $^O =~ /mswin/i, + useole => $useole, browsercmd => 'galeon -n %s', };
This was caused by me being stupid in the option assignment within the new() constructor. Tina Mueller also noticed this bug, and it's fixed (hopefully) in the 0.14 release. Thanks for reporting the bug ! -max