Skip Menu |

This queue is for tickets about the File-Spec CPAN distribution.

Report information
The Basics
Id: 75049
Status: open
Priority: 0/
Queue: File-Spec

People
Owner: Nobody in particular
Requestors: AARONRP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



In File::Spec::Unix, splitdir('') returns the empty list rather than a one-list item with the empty string. I don't think this is correct behavior. sub splitdir { return '' if $_[1] eq ''; return split m|/|, $_[1], -1; # Preserve trailing fields } should fix it.
If we did that, a lot of tests would break. If I had my druthers, it would just die when fed the empty string. It's nonsensical on Unix as far as I can tell.