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
String results of glob operator #9131
Comments
From xueweizhong@gmail.comCreated by xueweizhong@gmail.comJust try the 2 commands below:
The only difference between these 2 commands are `064' and `065', but why the results are so different? Is this caused by language feature or bug? Perl Info
|
From @schwernxueweizhong@gmail.com (via RT) wrote:
I am unable to reproduce the problem with 5.8.8 on OS X. I do note that the Yep, I fail at 256 with both 5.8.8 and bleadperl. With my limited knowledge of C, I can take an educated guess that the problem What's the value of MAXPATHLEN on your system? I see that constant popping up #include <stdio.h> int return 0; -- |
The RT System itself - Status changed from 'new' to 'open' |
From xueweizhong@gmail.comHi Michael,
See the shell screen below: Todd>cat > glob.c int return 0; } Is there word around for this issue? Thanks |
From @druud62Todd schreef:
$ perl -wle' -- "Gewoon is een tijger." |
From @schwernTodd wrote:
259? How bizarre. I wonder if that's some hack to take into account extra -- |
From @doyI can reproduce this on Linux with 5.16.0, except that the overflow perl -e 'local $" = ","; print join ",", <a{@{[q{00001}..q{00682}]}}>' to perl -e 'local $" = ","; print join ",", <a{@{[q{00001}..q{00683}]}}>' MAXPATHLEN on my system is 4096. -doy |
From @doyActually, more usefully: perl -e 'local $" = ","; print length join "", prints "4092", and perl -e 'local $" = ","; print length join "", <a{@{[q{0001}..q{0818}]}}>' prints "4090" (where 0818 is where this overflows when using 4 -doy |
Migrated from rt.perl.org#47780 (status was 'open')
Searchable as RT47780$
The text was updated successfully, but these errors were encountered: