Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmsify: don't add dot when drop dots feature is active #22348

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

craigberry
Copy link
Contributor

When a feature to omit the trailing dot on files with no extension is enabled, we have been actually appending a dot since the huge omnibus patch f7ddb74 19 years ago. The implementation may have been done backwards from its intention, or it may have intended to add the dot only when it would get removed on a round trip back through unixify. Which raises the question why add it at all? So don't.

There are relatively few situations where the absence of the dot can cause trouble, notably when a specific application has its own default file type that we want to override. But there are lots of situations where the presence of a dot causes trouble, such as File::Temp's confusion when its template that should end in 'XXXX' gets 'XXXX.' instead.

There is no change to default behavior here, only the behavior when DECC$READDIR_DROPDOTNOTYPE is present in the environment.

When a feature to omit the trailing dot on files with no extension
is enabled, we have been actually appending a dot since the huge
omnibus patch f7ddb74 19 years ago.  The implementation may
have been done backwards from its intention, or it may have
intended to add the dot only when it would get removed on a round
trip back through unixify. Which raises the question why add it at
all? So don't.

There are relatively few situations where the absence of the dot
can cause trouble, notably when a specific application has its
own default file type that we want to override.  But there are
lots of situations where the presence of a dot causes trouble,
such as File::Temp's confusion when its template that should
end in 'XXXX' gets 'XXXX.' instead.

There is no change to default behavior here, only the behavior
when DECC$READDIR_DROPDOTNOTYPE is present in the environment.
Copy link
Contributor

@khwilliamson khwilliamson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt there is anyone likely to review this who is qualified to do so, besides yourself. It looks sane to me

@craigberry craigberry merged commit aca207c into blead Jun 27, 2024
60 checks passed
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