Skip to content

[pull] blead from Perl:blead#176

Merged
pull[bot] merged 2 commits intosysfce2:bleadfrom
Perl:blead
Sep 4, 2024
Merged

[pull] blead from Perl:blead#176
pull[bot] merged 2 commits intosysfce2:bleadfrom
Perl:blead

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Sep 4, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Previously, only ">&" used to exempt the third open argument from
"strict subs":

    use strict;
    open my $fh1, ">&", STDOUT;   # bareword allowed
    open my $fh2, ">>&", STDOUT;  # error: Bareword "STDOUT" not allowed

Now all dup modes (>&, >>&, <&, +>&, +>>&, +<&) allow bareword
filehandles.

Fixes #22464.
Previously, only ">&" was tested (and other modes didn't work).

Now all 6 dup modes are tested (and 6 non-dup modes to verify that
barewords are still disallowed otherwise).
@pull pull bot added the ⤵️ pull label Sep 4, 2024
@pull pull bot merged commit da66962 into sysfce2:blead Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant