3 Can't open bidirectional pipe [Perl_do_open9]
6 Missing command in piped open [Perl_do_open9]
9 Missing command in piped open [Perl_do_open9]
12 warn(warn_nl, "open"); [Perl_do_open9]
15 close() on unopened filehandle %s [Perl_do_close]
16 $a = "fred";close("$a")
18 tell() on closed filehandle [Perl_do_tell]
19 $a = "fred";$a = tell($a)
21 seek() on closed filehandle [Perl_do_seek]
22 $a = "fred";$a = seek($a,1,1)
24 sysseek() on closed filehandle [Perl_do_sysseek]
25 $a = "fred";$a = seek($a,1,1)
27 warn(warn_uninit); [Perl_do_print]
30 -x on closed filehandle %s [Perl_my_stat]
31 close STDIN ; -x STDIN ;
33 warn(warn_nl, "stat"); [Perl_my_stat]
36 warn(warn_nl, "lstat"); [Perl_my_lstat]
39 Use of -l on filehandle %s [Perl_my_lstat]
41 Can't exec \"%s\": %s [Perl_do_aexec5]
43 Can't exec \"%s\": %s [Perl_do_exec3]
45 Filehandle %s opened only for output [Perl_do_eof]
48 Mandatory Warnings ALL TODO
50 Can't do inplace edit: %s is not a regular file [Perl_nextargv]
53 Can't do inplace edit: %s would not be unique [Perl_nextargv]
54 Can't rename %s to %s: %s, skipping file [Perl_nextargv]
55 Can't rename %s to %s: %s, skipping file [Perl_nextargv]
56 Can't remove %s: %s, skipping file [Perl_nextargv]
57 Can't do inplace edit on %s: %s [Perl_nextargv]
61 # doio.c [Perl_do_open9]
63 open(F, '|'."$^X -e 1|");
66 open(G, '|'."$^X -e 1|");
69 Can't open bidirectional pipe at - line 3.
71 # doio.c [Perl_do_open9]
77 Missing command in piped open at - line 3.
79 # doio.c [Perl_do_open9]
85 Missing command in piped open at - line 3.
87 # doio.c [Perl_do_open9]
91 open(H, "<truecd\n\0");
95 open(I, "<truecd\n\0");
97 Unsuccessful open on filename containing newline at - line 4.
98 Unsuccessful open on filename containing newline at - line 5.
100 # doio.c [Perl_do_close] <<TODO
101 use warnings 'unopened' ;
103 no warnings 'unopened' ;
106 close() on unopened filehandle fred at - line 3.
108 # doio.c [Perl_do_tell Perl_do_seek Perl_do_sysseek Perl_my_stat]
112 $a = seek(STDIN,1,1);
113 $a = sysseek(STDIN,1,1);
125 $a = seek(STDIN,1,1);
126 $a = sysseek(STDIN,1,1);
136 tell() on closed filehandle STDIN at - line 4.
137 seek() on closed filehandle STDIN at - line 5.
138 sysseek() on closed filehandle STDIN at - line 6.
139 -x on closed filehandle STDIN at - line 7.
140 stat() on closed filehandle STDIN at - line 8.
141 tell() on unopened filehandle at - line 10.
142 seek() on unopened filehandle at - line 11.
143 sysseek() on unopened filehandle at - line 12.
145 # doio.c [Perl_do_print]
146 use warnings 'uninitialized' ;
148 no warnings 'uninitialized' ;
151 Use of uninitialized value $a in print at - line 3.
153 # doio.c [Perl_my_stat Perl_my_lstat]
169 Unsuccessful stat on filename containing newline at - line 5.
170 Unsuccessful stat on filename containing newline at - line 6.
171 Unsuccessful stat on filename containing newline at - line 7.
172 Unsuccessful stat on filename containing newline at - line 8.
174 # doio.c [Perl_my_stat]
178 open $fh, $0 or die "# $!";
185 Use of -l on filehandle STDIN at - line 3.
186 Use of -l on filehandle $fh at - line 6.
188 # doio.c [Perl_my_stat]
190 use open qw( :utf8 :std );
196 Use of -l on filehandle ᶠᚻ at - line 5.
198 # doio.c [Perl_do_aexec5]
200 exec "lskdjfalksdjfdjfkls","" ;
202 exec "lskdjfalksdjfdjfkls","" ;
205 Statement unlikely to be reached at - line .+
206 \(Maybe you meant system\(\) when you said exec\(\)\?\)
207 Can't exec "lskdjfalksdjfdjfkls": .+
209 # doio.c [Perl_do_exec3]
211 exec "lskdjfalksdjfdjfkls", "abc" ;
213 exec "lskdjfalksdjfdjfkls", "abc" ;
216 Statement unlikely to be reached at - line .+
217 \(Maybe you meant system\(\) when you said exec\(\)\?\)
218 Can't exec "lskdjfalksdjfdjfkls(:? abc)?": .+
220 # doio.c [win32_execvp]
221 use warnings 'exec' ;
225 # doio.c [Perl_nextargv]
227 # These happen to warn at different points within doio.c
228 # This will open read only, and then be caught by an explicit check:
229 my $filename = "./temp.dir" ;
230 # Whereas these two will fail to open:
231 my $dir0 = "./zero.dir" ;
232 # but files and directories have a different error message if they don't open:
233 my $file3 = "date|" ;
234 mkdir $filename, 0777
235 or die "Cannot create directory $filename: $!\n" ;
237 or die "Cannot create directory dir0: $!\n" ;
239 local (@ARGV) = ($filename, $dir0, $file3) ;
244 no warnings 'inplace' ;
245 local (@ARGV) = ($filename, $dir0, $file3) ;
250 use warnings 'inplace' ;
251 local (@ARGV) = ($filename, $dir0, $file3) ;
260 Can't do inplace edit: \./temp\.dir is not a regular file at - line 17\.
261 Can't do inplace edit: \./zero\.dir is not a regular file at - line 17\.
262 Can't open date\|: .*? at - line 17\.
263 Can't do inplace edit: \./temp\.dir is not a regular file at - line 29\.
264 Can't do inplace edit: \./zero\.dir is not a regular file at - line 29\.
265 Can't open date\|: .*? at - line 29\.
267 # doio.c [Perl_do_eof]
273 Filehandle STDOUT opened only for output at - line 3.
275 # doio.c [Perl_do_openn]
278 if ($Config{useperlio}) {
281 # warns only without perlio
289 open BAR, '>&', \*STDOUT; # should not warn
293 Can't open a reference at - line 14.
295 # doio.c [Perl_do_openn]
298 if (!$Config{useperlio}) {
301 # warns only with perlio
308 open FH1, "../harness"; close FH1;
310 open FH2, "../harness"; close FH2;
312 Filehandle STDOUT reopened as FH1 only for input at - line 14.
314 # doio.c [Perl_do_openn]
317 use open qw( :utf8 :std );
319 if (!$Config{useperlio}) {
322 # warns only with perlio
329 open ᶠᚻ1, "../harness"; close ᶠᚻ1;
331 open ᶠᚻ2, "../harness"; close ᶠᚻ2;
333 Filehandle STDOUT reopened as ᶠᚻ1 only for input at - line 16.
335 # doio.c [Perl_do_openn]
338 if (!$Config{useperlio}) {
341 # warns only with perlio
348 open my $fh1, ">doiowarn.tmp"; close $fh1;
350 open my $fh2, ">doiowarn.tmp"; close $fh2;
351 unlink "doiowarn.tmp";
353 Filehandle STDIN reopened as $fh1 only for output at - line 14.
355 # doio.c [Perl_do_openn]
358 use open qw( :utf8 :std );
360 if (!$Config{useperlio}) {
363 # warns only with perlio
370 open my $ᶠᚻ1, ">doiowarn.tmp"; close $ᶠᚻ1;
372 open my $ᶠᚻ2, ">doiowarn.tmp"; close $ᶠᚻ2;
373 unlink "doiowarn.tmp";
375 Filehandle STDIN reopened as $ᶠᚻ1 only for output at - line 16.
377 # doio.c [Perl_do_openn]
380 use open qw( :utf8 :std );
382 if (!$Config{useperlio}) {
385 # warns only with perlio
392 open ᶠᚻ1, ">doiowarn.tmp"; close ᶠᚻ1;
394 open ᶠᚻ2, ">doiowarn.tmp"; close ᶠᚻ2;
395 unlink "doiowarn.tmp";
397 Filehandle STDIN reopened as ᶠᚻ1 only for output at - line 16.
399 open(my $i, "foo\0bar");
401 open(my $i, "foo\0bar");
403 Invalid \0 character in pathname for open: foo\0bar at - line 3.
405 chmod(0, "foo\0bar");
407 chmod(0, "foo\0bar");
409 Invalid \0 character in pathname for chmod: foo\0bar at - line 3.
411 unlink("foo\0bar", "foo\0bar2");
413 unlink("foo\0bar", "foo\0bar2");
415 Invalid \0 character in pathname for unlink: foo\0bar at - line 3.
416 Invalid \0 character in pathname for unlink: foo\0bar2 at - line 3.
418 utime(-1, -1, "foo\0bar", "foo\0bar2");
420 utime(-1, -1, "foo\0bar", "foo\0bar2");
422 Invalid \0 character in pathname for utime: foo\0bar at - line 3.
423 Invalid \0 character in pathname for utime: foo\0bar2 at - line 3.
425 my @foo = glob "foo\0bar";
427 my @bar = glob "foo\0bar";
429 Invalid \0 character in pattern for glob: foo\0bar at - line 3.