Skip to content

perl5.7.0's select returns unqualified names #2565

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

Closed
p5pRT opened this issue Sep 2, 2000 · 2 comments
Closed

perl5.7.0's select returns unqualified names #2565

p5pRT opened this issue Sep 2, 2000 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 2, 2000

Migrated from rt.perl.org#4202 (status was 'resolved')

Searchable as RT4202$

@p5pRT
Copy link
Author

p5pRT commented Sep 2, 2000

From [email protected]

Created by [email protected]

#!perl
open(TMP,">/tmp/x") || die "Cannot open /tmp/x​:$!";
my $old = select(TMP);
my $now = select;
warn "old=$old now=$now\n";
__END__

nick@​bactrian​:~ > perl select.t
old=main​::STDOUT now=main​::TMP
nick@​bactrian​:~ > perl5.6.0 !$
perl5.6.0 select.t
old=main​::STDOUT now=main​::TMP
nick@​bactrian​:~ > perl5.7.0 !$
perl5.7.0 select.t
old=STDOUT now=TMP

Perl Info


This perlbug was built using Perl 5.00503 - Tue Jun 22 21:43:30 BST 1999
It is being executed now by  Perl 5.00503 - Thu Jun 24 19:59:11 BST 1999.

Site configuration information for perl 5.00503:

Configured by nick at Thu Jun 24 19:59:11 BST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.2.5, archname=i686-linux
    uname='linux bactrian 2.2.5 #38 tue jun 22 08:42:26 bst 1999 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O2 -g', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
    cppflags='-Dbool=char -DHAS_BOOL -DDEBUGGING -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -DDEBUGGING -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:



@INC for perl 5.00503:
    /usr/local/lib/perl5/5.00503/i686-linux
    /usr/local/lib/perl5/5.00503
    /usr/local/lib/perl5/site_perl/5.005/i686-linux
    /usr/local/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=/home/nick
    LANG=en_GB.ISO-8859-1
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/opt/kde/lib
    LOGDIR (unset)
    PATH=/home/nick/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde/bin:/usr/openwin/bin:.:/usr/sbin:/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


@p5pRT
Copy link
Author

p5pRT commented Sep 2, 2000

From [Unknown Contact. See original ticket]

Nick Ing-Simmons <nick@​ni-s.u-net.com> writes​:

This is a bug report for perl from nick@​bactrian.ni-s.u-net.com,
generated with the help of perlbug 1.26 running under perl 5.00503.

Found it - it is part of change 6489. The changes stated intent
is to remove main​:: prefix from warnings. Looks like select() was
changed by over-zealous global edit.

Checked in change 7003 which does​:

==== //depot/perl/pp_sys.c#180 (text) - //depot/perl/pp_sys.c#181 (text) ==== content
@​@​ -1083,7 +1083,7 @​@​
  else {
  GV **gvp = (GV**)hv_fetch(hv, GvNAME(egv), GvNAMELEN(egv), FALSE);
  if (gvp && *gvp == egv) {
- gv_efullname4(TARG, PL_defoutgv, Nullch, FALSE);
+ gv_efullname4(TARG, PL_defoutgv, Nullch, TRUE);
  XPUSHTARG;
  }
  else {

All tests still pass for me.

-----------------------------------------------------------------
[Please enter your report here]

#!perl
open(TMP,">/tmp/x") || die "Cannot open /tmp/x​:$!";
my $old = select(TMP);
my $now = select;
warn "old=$old now=$now\n";
__END__

nick@​bactrian​:~ > perl select.t
old=main​::STDOUT now=main​::TMP
nick@​bactrian​:~ > perl5.6.0 !$
perl5.6.0 select.t
old=main​::STDOUT now=main​::TMP
nick@​bactrian​:~ > perl5.7.0 !$
perl5.7.0 select.t
old=STDOUT now=TMP

[Please do not change anything below this line]
-----------------------------------------------------------------

---
This perlbug was built using Perl 5.00503 - Tue Jun 22 21​:43​:30 BST 1999
It is being executed now by Perl 5.00503 - Thu Jun 24 19​:59​:11 BST 1999.

Site configuration information for perl 5.00503​:

Configured by nick at Thu Jun 24 19​:59​:11 BST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
Platform​:
osname=linux, osvers=2.2.5, archname=i686-linux
uname='linux bactrian 2.2.5 #38 tue jun 22 08​:42​:26 bst 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler​:
cc='gcc', optimize='-O2 -g', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
cppflags='-Dbool=char -DHAS_BOOL -DDEBUGGING -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -DDEBUGGING -I/usr/local/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries​:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lc -lposix -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking​:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches​:

---
@​INC for perl 5.00503​:
/usr/local/lib/perl5/5.00503/i686-linux
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/i686-linux
/usr/local/lib/perl5/site_perl/5.005
.

---
Environment for perl 5.00503​:
HOME=/home/nick
LANG=en_GB.ISO-8859-1
LANGUAGE (unset)
LD_LIBRARY_PATH=/opt/kde/lib
LOGDIR (unset)
PATH=/home/nick/bin​:/usr/local/bin​:/usr/bin​:/usr/X11R6/bin​:/bin​:/usr/games/bin​:/usr/games​:/opt/gnome/bin​:/opt/kde/bin​:/usr/openwin/bin​:.​:/usr/sbin​:/sbin
PERL_BADLANG (unset)
SHELL=/bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant