We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, if I use massedit to modify an executable file, the executable bit gets lost.
massedit
$ ls -l foo.sh -rwxr-xr-x 1 myint wheel 2 Jul 13 09:16 foo.sh $ massedit -we 'line.replace("a", "b")' '*.sh' $ ls -l foo.sh -rw-r--r-- 1 myint wheel 2 Jul 13 09:17 foo.sh
The text was updated successfully, but these errors were encountered:
One possible solution is to use shutil.copymode().
shutil.copymode()
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Currently, if I use
massedit
to modify an executable file, the executable bit gets lost.The text was updated successfully, but these errors were encountered: