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
chomp() fails after alarm(), sleep
#7765
Comments
From perlbug20050125.z.jp@xoxy.netCreated by perlbug20050125.z.jp@xoxy.net$ perl -e '$SIG{"ALRM"} = sub { die }; eval { alarm(1); my $x = `sleep 2`; }; chomp ($_="foo\n"); die "Wrong" if /\n/;' (Thanks to Simon Cozens for simplifying my test case to the above.) Perl Info
|
From @nwc10On Tue, Jan 25, 2005 at 08:01:05PM -0000, perlbug20050125. z. jp @ xoxy. net wrote:
Most curious. It seems to be a bug introduced between 5.8.0 and 5.8.1. Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Tue, Jan 25, 2005 at 11:02:16PM +0000, Nicholas Clark wrote:
pp_backtick temporarily alters PL_rs, but saves the old value in a C local But it's too late at night for me to fix right now; I'm off up the wooden -- |
From @nwc10On Wed, Jan 26, 2005 at 12:15:08AM +0000, Dave Mitchell wrote:
Ah yes. I wonder how many other places in the perl code have a similar class of bug. Specifically here, I wonder how to safely write a portable regression test. Nicholas Clark |
From @schwernOn Wed, Jan 26, 2005 at 11:46:28AM +0000, Nicholas Clark wrote:
Replace 'sleep 2' with 'perl -e "sleep 2"'? |
From @iabynOn Wed, Jan 26, 2005 at 12:15:08AM +0000, Dave Mitchell wrote:
now fixed by change 23898. -- |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#33928 (status was 'resolved')
Searchable as RT33928$
The text was updated successfully, but these errors were encountered: