Open TheDaemoness opened 2 years ago
That is an interesting one. I recall that the C core assumes its inputs are fully canonicalized, which I don't think $PWD/foo/
is. I can't find a clear statement on the subject, but I did find some data:
/.
everywhere." Since canonicalization strips /.
components, that would imply to me that trailing /
was not canonical.
My intuition is that paths with trailing slashes should be treated the same as paths without them. I've written my EditorConfig core in Rust (which, at the time of writing, passes the full core test suite) to have this behavior.
This does not match EditorConfig Core C's behavior.