New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readline setting $! on success contrary to perlfunc #9876
Comments
From user42@zip.com.auCreated by user42@zip.com.auThe readline() function sometimes sets $! to EBADF when it succeeds, For example the program foo.pl below prints first: Bad file descriptor where I expected that it would print an empty string, or perhaps foo.pl gets it at the start of a file, I struck it when a readline gdb claims errno is changed by PerlIO_fast_gets() under buffer filling Perl Info
|
From user42@zip.com.au |
From @ikegamiOn Thu, Sep 17, 2009 at 7:53 PM, Kevin Ryde <perlbug-followup@perl.org>wrote:
It's on my todo list to create a documentation patch for this. Basically, while (!eof($fh)) { More details here: |
The RT System itself - Status changed from 'new' to 'open' |
From user42@zip.com.au"Eric Brine via RT" <perlbug-followup@perl.org> writes:
Is eof the best there? For myself I ended up checking the result string If readline has never done anything particular with $! then I suppose it |
From @briandfoyI've fixed the documentation portion of this in 0f03d33. |
From @dcollinsnOn Fri Sep 25 13:19:21 2009, comdog wrote:
There are a number of older bugs like this, where someone is checking Closing resolved. -- |
@dcollinsn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#69208 (status was 'resolved')
Searchable as RT69208$
The text was updated successfully, but these errors were encountered: