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

Bug: Perl globbing command aborts without any errors and warnings. #946

Closed
p5pRT opened this issue Dec 14, 1999 · 2 comments
Closed

Bug: Perl globbing command aborts without any errors and warnings. #946

p5pRT opened this issue Dec 14, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 14, 1999

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

Searchable as RT1891$

@p5pRT
Copy link
Author

p5pRT commented Dec 14, 1999

From Yen-Hung_Chen@i2.com

Yen-Hung Chen

My perl script is​:

#!/usr/local/bin/perl -w

while (defined ($profile = <*.pf>)) {
  chomp($profile);
  print "$profile,";
}

The script aborts without printing anything. The directory has 2592 ".pf" files.

The perl I use is​:

% /usr/local/bin/perl -v

This is perl, version 5.004_04 built for sun4-solaris

Copyright 1987-1997, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

@p5pRT
Copy link
Author

p5pRT commented Dec 14, 1999

From [Unknown Contact. See original ticket]

On Tue, 14 Dec 1999, Yen-Hung Chen wrote​:

The simple globbing command fails without giving any
warning or error, when the command returns a list which is too large.

Thanks for mentioning it. It's a known bug - but it's a bug in csh, rather
than perl. (Or, maybe the bug is that Perl uses csh. :-)

If you have or can obtain tcsh, you should be able to recompile perl to
use that instead of csh, so you can avoid this bug.

In any case, it's (scheduled to be) fixed in the upcoming version 5.6 of
perl, which won't use csh.

Thanks for the bug report!

--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case​: http​://www.rahul.net/jeffrey/ovs/

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