Skip to content

Revert "fix: replace two-arg open with three-arg form in Agent.pm"#59

Closed
mdierksen wants to merge 1 commit into
cpan-authors:mainfrom
netcon-consulting:main
Closed

Revert "fix: replace two-arg open with three-arg form in Agent.pm"#59
mdierksen wants to merge 1 commit into
cpan-authors:mainfrom
netcon-consulting:main

Conversation

@mdierksen

Copy link
Copy Markdown

This reverts commit 9f8da66.

The commit breaks input from stdin.

Apparently our glorious and wise AI overlord Claude Opus 4.6 cannot be arsed to test its changes at all because otherwise it would have noticed that simply calling the razor-check binary with no arguments produces the error message "Can't open -: No such file or directory" and an error return code.

This reverts commit 9f8da66.

The commit breaks input from stdin.

Apparently our glorious and wise AI overlord Claude Opus 4.6 cannot
be arsed to test its changes at all because otherwise it would
have noticed that simply calling the razor-check binary with no
arguments produces the error message "Can't open -: No such file
or directory" and an error return code.
@toddr

toddr commented May 25, 2026

Copy link
Copy Markdown
Member

This was put in specifically at my direction and reviewed by me. Can you clarify what the error is because converting a 2 arg to a 3 arg is only an error if you have a VERY strange file name.

@toddr

toddr commented May 25, 2026

Copy link
Copy Markdown
Member

@toddr-bot review

@mdierksen

Copy link
Copy Markdown
Author

This was put in specifically at my direction and reviewed by me. Can you clarify what the error is because converting a 2 arg to a 3 arg is only an error if you have a VERY strange file name.

It breaks input from stdin.

$ cat test.eml | razor-check
Can't open -: No such file or directory
$ cat test.eml | razor-check -
Can't open -: No such file or directory
$ razor-check
Can't open -: No such file or directory

@toddr

toddr commented May 26, 2026

Copy link
Copy Markdown
Member

I'm replacing this with #60

@toddr toddr closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants