Skip to content
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

open FILEHANDLE,MODE,LIST is broken #6712

Closed
p5pRT opened this issue Aug 18, 2003 · 6 comments
Closed

open FILEHANDLE,MODE,LIST is broken #6712

p5pRT opened this issue Aug 18, 2003 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 18, 2003

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

Searchable as RT23366$

@p5pRT
Copy link
Author

p5pRT commented Aug 18, 2003

From balazs@dev.sportsline.com

Created by balazs@commissioner.com

Perl Info

Flags:
    category=core
    severity=medium

Site configuration information for perl v5.6.0:

Configured by bhcompile at Thu Aug  9 22:47:55 EDT 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.6-3.1enterprise, archname=i386-linux
    uname='linux stripples.devel.redhat.com 2.4.6-3.1enterprise #1 smp tue jul 24 14:03:17 edt 2001 i686 unknown '
    config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Uuselargefiles'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=undef 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O2 -march=i386 -mcpu=i686', gccversion=2.96 20000731 (Red Hat Linux 7.1 2.96-96)
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccflags ='-fno-strict-aliasing -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
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    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 -ldl -lm -lc -lcrypt
    libc=/lib/libc-2.2.4.so, 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 v5.6.0:
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/football/lib
    /net/balazs/fsrc/football/appslib
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/football/lib
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/football/lib
    /net/balazs/fsrc/football/appslib
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/football/lib
    /net/balazs/fsrc/media/appslib
    /net/balazs/fsrc/core/lib
    /net/balazs/fsrc/football/lib
    /usr/lib/perl5/5.6.0/i386-linux
    /usr/lib/perl5/5.6.0
    /usr/lib/perl5/site_perl/5.6.0/i386-linux
    /usr/lib/perl5/site_perl/5.6.0
    /usr/lib/perl5/site_perl
    .


Environment for perl v5.6.0:
    HOME=/net/balazs
    LANG=en_US
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/net/balazs/fsrc/core/bin:/net/balazs/fsrc/media/bin:/net/balazs/fsrc/football/bin:/net/sysadm/bin:/net/sysadm:/net/balazs/fsrc/core/bin:/net/balazs/fsrc/media/bin:/net/balazs/fsrc/football/bin:/net/sysadm/bin:/net/sysadm:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:.:/net/balazs/bin:/net/sysadm/bin:/usr/local/pkg/bin:/net/balazs/bin:/net/balazs/src/football/bin:/net/balazs/bin:.:/net/balazs/bin:/net/sysadm/bin:/usr/local/pkg/bin:/net/balazs/bin:/net/balazs/src/football/bin:/net/balazs/bin:.:/net/balazs/bin:/net/sysadm/bin:/usr/local/pkg/bin
    PERL5LIB=/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/football/lib:/net/balazs/fsrc/football/appslib:/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/football/lib:/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/football/lib:/net/balazs/fsrc/football/appslib:/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/football/lib:/net/balazs/fsrc/media/appslib:/net/balazs/fsrc/core/lib:/net/balazs/fsrc/football/lib:
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Aug 19, 2003

From sky@nanisky.com

On Monday, August 18, 2003, at 11​:31 pm, Balazs Rauznitz (via RT)
wrote​:

Looking at 'perldoc -f open' this should work​:

perl -e 'open F, "-|", "ls", "-l"'

It does so on 5.8.0, but not on 5.6.0; it craps out saying​:

Can't use an undefined value as filehandle reference at -e line 1.

Only reporting this because I've heard that people are working on
5.6.2.

Thanks,

I doubt this is going to be fixed in 5.6.2, it is a 5.8.0 feature?

Arthur

@p5pRT
Copy link
Author

p5pRT commented Aug 20, 2003

From @schwern

On Tue, Aug 19, 2003 at 03​:35​:50PM +0100, Arthur Bergman wrote​:

Looking at 'perldoc -f open' this should work​:

perl -e 'open F, "-|", "ls", "-l"'

It does so on 5.8.0, but not on 5.6.0; it craps out saying​:

Can't use an undefined value as filehandle reference at -e line 1.

Only reporting this because I've heard that people are working on
5.6.2.

Thanks,

I doubt this is going to be fixed in 5.6.2, it is a 5.8.0 feature?

Its a 5.6.0 feature.

open FILEHANDLE,MODE,LIST

it appears that only works in 5.6.0 if LIST has one element. ie.

  open F, "-|", "ls -l"

The new "three arg open". It might be a bug or it might be ambiguous
documentation. Anyhow, its not going to get fixed in 5.6.2. 5.6.2 is
just fixes so it can work with recent compilers. 5.6.3 will address bugs...
whenever it comes out.

--
Michael G Schwern schwern@​pobox.com http​://www.pobox.com/~schwern/
We don't know. But if we did, we wouldn't tell you.

@p5pRT
Copy link
Author

p5pRT commented Aug 20, 2003

@rgs - Status changed from 'new' to 'resolved'

@p5pRT
Copy link
Author

p5pRT commented Aug 20, 2003

From nick.ing-simmons@elixent.com

Arthur Bergman <sky@​nanisky.com> writes​:

On Monday, August 18, 2003, at 11​:31 pm, Balazs Rauznitz (via RT)
wrote​:

Looking at 'perldoc -f open' this should work​:

perl -e 'open F, "-|", "ls", "-l"'

It does so on 5.8.0, but not on 5.6.0; it craps out saying​:

Can't use an undefined value as filehandle reference at -e line 1.

Only reporting this because I've heard that people are working on
5.6.2.

Thanks,

I doubt this is going to be fixed in 5.6.2, it is a 5.8.0 feature?

But only a open-parsing one, not one that _needs_ PerlIO
so it could be back-fitted to 5.6 if someone had that much enthusiasm.

Arthur

@p5pRT
Copy link
Author

p5pRT commented Sep 16, 2003

@rgs - Status changed from 'open' to 'resolved'

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