-
Notifications
You must be signed in to change notification settings - Fork 531
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
chdir doesn't return a boolean, but manual says it returns true/false #22365
Comments
mauke
added a commit
to mauke/perl5
that referenced
this issue
Jul 1, 2024
Previously it would return integer 1 and 0, not booleans. Fixes Perl#22365.
mauke
added a commit
to mauke/perl5
that referenced
this issue
Jul 1, 2024
Previously it would return integer 1 and 0, not booleans. Fixes Perl#22365.
mauke
added a commit
to mauke/perl5
that referenced
this issue
Jul 2, 2024
Previously it would return integer 1 and 0, not booleans. Fixes Perl#22365.
mauke
added a commit
to mauke/perl5
that referenced
this issue
Jul 2, 2024
Previously it would return integer 1 and 0, not booleans. Fixes Perl#22365.
mauke
added a commit
to mauke/perl5
that referenced
this issue
Jul 2, 2024
Previously it would return integer 1 and 0, not booleans. Fixes Perl#22365.
mauke
added a commit
that referenced
this issue
Jul 4, 2024
Previously it would return integer 1 and 0, not booleans. Fixes #22365.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
According to
perldoc -f chdir
:However,
chdir
actually returns (integer) 1 and 0. This is mostly observable in the failure case, which (according to the documentation) should return a value that iseq ""
, but isn't.Steps to Reproduce
Expected behavior
I.e. a false value should stringify to the empty string and be
is_bool
.Alternatively, the documentation should be changed to match the existing behavior.
(This is with v5.40.0.)
The text was updated successfully, but these errors were encountered: