Skip to content

Commit 40837a1

Browse files
authored
IO::Path.x gives false-positives for scripts
Add a note saying so. May this save some future reader some grief.
1 parent 3573f9b commit 40837a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/Type/IO/Path.pod6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,11 @@ Returns C<True> if the invocant is a path that exists and is executable.
711711
The method will L«C<fail>|/routine/fail» with C<X::IO::DoesNotExist> if the
712712
path points to a non-existent filesystem entity.
713713
714+
B<NOTE:> If the file is a script (an executable text file and not a native executable),
715+
and the file has I<only> executable permissions and I<no> read permissions,
716+
this method will return C<True> but trying to execute will fail. That is a
717+
limitation of the operating system.
718+
714719
=head2 method rwx
715720
716721
Defined as:

0 commit comments

Comments
 (0)