-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
fs.writeFileSync doesn't change the mode of existing file. #39859
Comments
Same issues happen on Let me handle this. |
I'm not sure what the behavior is supposed to be but it doesn't seem like a bug. The |
Or, should we describe this in the document? Currently none of these functions say they will ignore |
Yes, When I looked into the source code L2153, |
Version
16.4.0
Platform
macOS
Subsystem
Big Sur(11.2.3)
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
no condition
What is the expected behavior?
should print
1111
.What do you see instead?
a.sh: line 2: ./a: Permission denied
Additional information
No response
The text was updated successfully, but these errors were encountered: