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

run-perltidy deletes .bak files #1018

Open
Alex-Jordan opened this issue Feb 18, 2024 · 0 comments
Open

run-perltidy deletes .bak files #1018

Alex-Jordan opened this issue Feb 18, 2024 · 0 comments

Comments

@Alex-Jordan
Copy link
Contributor

I was working on a macro file foo.pl and decided I wanted to start over with a different approach. I saved foo.pl as foo.pl.bak and got a fresh copy of foo.pl and make new edits. I got to a certain point and ran run-perltidy.pl on foo.pl. It turns out this destroyed foo.pl.bak.

I see now reading the documentation for run-perltidy.pl that it will do this, although I'm not sure the script considers if foo.pl.bak might already exist. Could we change it so the script aborts if foo.pl.bak exists, and it gives an error message? Then you could either decide to delete the backup file, or use a different extension.

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

No branches or pull requests

1 participant