Skip Menu |

This queue is for tickets about the Shell-POSIX-Select CPAN distribution.

Report information
The Basics
Id: 48637
Status: resolved
Priority: 0/
Queue: Shell-POSIX-Select

People
Owner: Nobody in particular
Requestors: pczerkas [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: New version 0.06
0.06 Tue Aug 11 15:28:50 CET 2009 changes by Przemek Czerkas <pczerkas@gmail.com>: - fixed module and test.pl suite to work on MSWin32 platform - explicit dependency on Text::Balanced 1.97 and Filter::Simple 0.84 - added more tests - refreshed documentation
Subject: Shell-POSIX-Select-0.06.diff

Message body is not shown because it is too large.

Subject: Shell-POSIX-Select-0.06.tar.gz

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #48637] New version 0.06
Date: Tue, 11 Aug 2009 18:11:53 -0700
To: Przemek Czerkas via RT <bug-Shell-POSIX-Select [...] rt.cpan.org>
From: Tim Maher <tim [...] consultix-inc.com>
On Tue, Aug 11, 2009 at 08:10:02PM -0400, Przemek Czerkas via RT opined thusly: Show quoted text
> Tue Aug 11 20:10:00 2009: Request 48637 was acted upon.
I never heard about that request! Anyway, thanks for working on my module. I'll check out your upgrade! Tim *----------------------------------------------------------------------* | Tim Maher, PhD (206) 781-UNIX http://www.consultix-inc.com | | tim at ( TeachMePerl, TeachMeLinux, or TeachMeUnix ) dot Com | ! *CLASSES: 8/17-20: Basic UNIX/Linux , 8/24-26: Perl Programming | | 8/27-28: Perl Modules , 9/21-23: Intermediate Perl | *-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- | > "Minimal Perl for UNIX People" has been an Amazon Best Seller! < | | * Download chapters, read reviews, and order at: MinimalPerl.com * | *----------------------------------------------------------------------* Show quoted text
> Transaction: Ticket created by pczerkas > Queue: Shell-POSIX-Select > Subject: New version 0.06 > Broken in: (no value) > Severity: Important > Owner: Nobody > Requestors: pczerkas@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48637 > > > > 0.06 Tue Aug 11 15:28:50 CET 2009 > changes by Przemek Czerkas <pczerkas@gmail.com>: > - fixed module and test.pl suite to work on MSWin32 platform > - explicit dependency on Text::Balanced 1.97 and Filter::Simple 0.84 > - added more tests > - refreshed documentation
Subject: Re: [rt.cpan.org #48637] New version 0.06
Date: Tue, 11 Aug 2009 19:18:21 -0700
To: Przemek Czerkas via RT <bug-Shell-POSIX-Select [...] rt.cpan.org>
From: Tim Maher <tim [...] consultix-inc.com>
On Tue, Aug 11, 2009 at 08:10:02PM -0400, Przemek Czerkas via RT opined thusly: Show quoted text
> Tue Aug 11 20:10:00 2009: Request 48637 was acted upon. > Transaction: Ticket created by pczerkas > Queue: Shell-POSIX-Select > Subject: New version 0.06 > Broken in: (no value) > Severity: Important > Owner: Nobody > Requestors: pczerkas@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48637 > > > > 0.06 Tue Aug 11 15:28:50 CET 2009 > changes by Przemek Czerkas <pczerkas@gmail.com>: > - fixed module and test.pl suite to work on MSWin32 platform > - explicit dependency on Text::Balanced 1.97 and Filter::Simple 0.84 > - added more tests > - refreshed documentation
Przemek, I see that you deleted the documentation about problems with commented- out select loops not being ignored as they should be; apparently, you think that no longer happens. It's been a while since I played with this module, so if improvements in the new Filter::Simple and/or Text::Balanced have eradicated those bugs, I hadn't noticed! This leads me to wonder, how extensive was the testing procedure that you used? I see you caught a bug where A and B or C should have been A and (B or C); thanks for that! I didn't understand some of the other changes you made, so I'll study them more closely and get back to you. This was one thing that confused me: checking !$iscrlf to determine if the Reference files had the proper line-endings to justify comparing files during testing. The Reference files, being created on Linux, have only linefeeds at their ends, so why isn't that test done as (!$islf) ? Tim P.S. I know very little about the Windows programming environment! That's why I didn't attempt to make this module work with it in the first place. *----------------------------------------------------------------------* | Tim Maher, PhD (206) 781-UNIX http://www.consultix-inc.com | | tim at ( TeachMePerl, TeachMeLinux, or TeachMeUnix ) dot Com | ! *CLASSES: 8/17-20: Basic UNIX/Linux , 8/24-26: Perl Programming | | 8/27-28: Perl Modules , 9/21-23: Intermediate Perl | *-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- | > "Minimal Perl for UNIX People" has been an Amazon Best Seller! < | | * Download chapters, read reviews, and order at: MinimalPerl.com * | *----------------------------------------------------------------------*
Subject: Re: [rt.cpan.org #48637] New version 0.06
Date: Wed, 12 Aug 2009 18:20:02 +0200
To: <bug-Shell-POSIX-Select [...] rt.cpan.org>
From: "Przemek Czerkas" <pczerkas [...] gmail.com>
Tim, Show quoted text
> I see that you deleted the documentation about problems with commented- > out select loops not being ignored as they should be; apparently, you > think that no longer happens. It's been a while since I played with > this module, so if improvements in the new Filter::Simple and/or > Text::Balanced have eradicated those bugs, I hadn't noticed! This leads > me to wonder, how extensive was the testing procedure that you used?
More test programs were prepared: - 'eslect_fixed' with actually correctly spelled 'select' loop and commented out tests ok - 'loop_variable_names' where loop-variable names look like Perl operators, tests ok - 'failure_to_identify_loops' test, which, as I see it now, doesn't work as expected :) Looks like its impossible to test mutiple cases in one file, by the mean of screen dump. Fixing this (test file) Show quoted text
> I see you caught a bug where A and B or C should have been A and (B or > C); thanks for that! I didn't understand some of the other changes you > made, so I'll study them more closely and get back to you.
Also greped the source for all such constructs, only this one was faulty ;) Show quoted text
> This was one thing that confused me: checking !$iscrlf to determine if > the Reference files had the proper line-endings to justify comparing > files during testing. The Reference files, being created on Linux, have > only linefeeds at their ends, so why isn't that test done as (!$islf) ?
Skip file-size tests if current IO layer has newlines type different from newlines in the reference files, eg. on 'MSWin32' platform logical '\n' in text files is stored as '\x0d\x0a' byte sequence. Actually I spoted few more bugs: - can't set 'prompt' option in constructor (working on it) - nailed down problem in Select.pm around 647 line: # local scope for $^W mod # getting one pesky "uninit var" warnings I can't resolve so puting "use warnings" in Select.pm does not throw warnings any more :) - $ENV{Select_POSIX_Shell_Prompt} misspelled, should read: $ENV{Shell_POSIX_Select_prompt} Plus I've got idea for a new feature in test.pl: if 'testname.input' file with program input (keystrokes) is present in Tests_Progs directory along with 'testname' test file, and we're testing for screens matches do stuff the 'testname.input' file to STDIN of the test program and compare the output with expected screen dump? Show quoted text
> > Tim > P.S. I know very little about the Windows programming environment! > That's why I didn't attempt to make this module work with it in > the first place.
Przemek
Thank you for the patch. However, I can not apply it for two reasons (that I've found so far): 1. Please re-run diff with whitespace differences turned off (-w). Many of the patches cause files to become corrupted 2. Please re-run diff so that it adds new files to the patch (--new-file).
Nevermind, I was able to reconstruct all your changes from the ZIP file. THANK YOU again!
Patch applied and new distro 0.07 uploaded to CPAN
Subject: Re: [rt.cpan.org #48637] New version 0.06
Date: Sun, 30 Jul 2017 08:09:39 +0200
To: bug-Shell-POSIX-Select [...] rt.cpan.org
From: Przemek Czerkas <pczerkas [...] gmail.com>
Thanks! 29 lip 2017 21:33 "Martin Thurn via RT" <bug-Shell-POSIX-Select@rt.cpan.org> napisaƂ(a): Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=48637 > > > Patch applied and new distro 0.07 uploaded to CPAN >