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

finddepth in File::Find in development versions of perl busted #1143

Closed
p5pRT opened this issue Feb 4, 2000 · 1 comment
Closed

finddepth in File::Find in development versions of perl busted #1143

p5pRT opened this issue Feb 4, 2000 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Feb 4, 2000

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

Searchable as RT2104$

@p5pRT
Copy link
Author

p5pRT commented Feb 4, 2000

From spock@gte.net

This is a bug report for perl from spock@​sarek.com,
generated with the help of perlbug 1.27 running under perl 5.00564.


finddepth in File​::Find in the latest development versions of perl​:
perl5.5.640 and perl5.00563, has completely mangled depth first
search. And it does not know the proper directory that a directory
resides in. A simple example​:

ls -R
.​:
1/ 2/ l.-1 l.-2

1​:
3/ 4/ l1-1 l1-2

1/3​:
l3-1 l3-2

1/4​:
l4-1 l4-2

2​:
l2-1 l2-2

cat /tmp/bar.pl
use File​::Find;

sub wanted {
  my $PWD = `pwd`;
  chomp $PWD;
  print "%%$PWD%%$_\n";
}
finddepth(\&wanted, ".");

/home/spock/tools/x86/bin/perl5.00503 /tmp/bar.pl
%%/home/spock/tmp/foo/1/3%%l3-1
%%/home/spock/tmp/foo/1/3%%l3-2
%%/home/spock/tmp/foo/1%%3
%%/home/spock/tmp/foo/1/4%%l4-1
%%/home/spock/tmp/foo/1/4%%l4-2
%%/home/spock/tmp/foo/1%%4
%%/home/spock/tmp/foo/1%%l1-1
%%/home/spock/tmp/foo/1%%l1-2
%%/home/spock/tmp/foo%%1
%%/home/spock/tmp/foo/2%%l2-1
%%/home/spock/tmp/foo/2%%l2-2
%%/home/spock/tmp/foo%%2
%%/home/spock/tmp/foo%%l.-1
%%/home/spock/tmp/foo%%l.-2
%%/home/spock/tmp/foo%%.

/home/spock/tools/x86/bin/perl5.5.640 /tmp/bar.pl
%%/home/spock/tmp/foo%%l.-1
%%/home/spock/tmp/foo%%l.-2
%%/home/spock/tmp/foo%%.
%%/home/spock/tmp/foo/2%%l2-1
%%/home/spock/tmp/foo/2%%l2-2
%%/home/spock/tmp/foo/2%%2
%%/home/spock/tmp/foo/1%%l1-1
%%/home/spock/tmp/foo/1%%l1-2
%%/home/spock/tmp/foo/1%%1
%%/home/spock/tmp/foo/1/4%%l4-1
%%/home/spock/tmp/foo/1/4%%l4-2
%%/home/spock/tmp/foo/1/4%%4
%%/home/spock/tmp/foo/1/3%%l3-1
%%/home/spock/tmp/foo/1/3%%l3-2
%%/home/spock/tmp/foo/1/3%%3



Site configuration information for perl 5.00564​:

Configured by spock at Fri Feb 4 19​:40​:01 PST 2000.

Summary of my perl5 (revision 5.0 version 5 subversion 640) configuration​:
  Platform​:
  osname=linux, osvers=2.2.5-15, archname=i686-linux
  uname='linux ds9 2.2.5-15 #1 mon apr 19 23​:00​:46 edt 1999 i686 unknown '
  config_args='-des -Dprefix=/home/spock/tools/x86'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef useithreads=undef
  usesocks=undef useperlio=undef d_sfio=undef
  use64bits=undef uselargefiles=define usemultiplicity=undef
  Compiler​:
  cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
  cppflags='-Dbool=char -DHAS_BOOL -fno-strict-aliasing'
  ccflags ='-Dbool=char -DHAS_BOOL -fno-strict-aliasing'
  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='cc', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib
  libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
  libc=/lib/libc-2.1.1.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 5.00564​:
  /home/spock/tools/x86/lib/perl5/5.5.640/i686-linux
  /home/spock/tools/x86/lib/perl5/5.5.640
  /home/spock/tools/x86/lib/perl5/site_perl/5.5.640/i686-linux
  /home/spock/tools/x86/lib/perl5/site_perl/5.5.640
  .


Environment for perl 5.00564​:
  HOME=/home/spock
  LANG (unset)
  LANGUAGE (unset)
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/home/spock/sh​:/home/spock/perl​:/home/spock/tools/x86/bin​:/home/spock/tools/x86.libc5/bin​:/usr/local/bin​:/usr/bin/X11​:/usr/openwin/bin​:/usr/bin​:/bin​:/etc​:/usr/etc​:/sbin​:/usr/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