Closed vicendominguez closed 4 years ago
Thanks for your patch and good description how how FreeBSD differs here from other systems.
I’ve manually verified this works on FreeBSD, Linux, and macOS. I’m also going to fix a couple of minor assumptions the tests make so the tests are green on FreeBSD too.
Hello mate!
I think this is easier to explain with a real example:
the perl diamond operator
<>
returnsundef
when you try to read an opened directory from the file-handled in Linux, but the directories are files in UNIX (FreeBSD in this case) and they are neverundef
The
if (defined $data)
is always true in FreeBSD and that's breaking the compatibility. This is my approach to solve it. I'm not a developer.Working in my Linux and my FreeBSD with this fix as far as i could test it in bash!