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

Use File::NULL instead of /dev/null #44543

Conversation

jonathanhefner
Copy link
Member

Some platforms (namely, Windows) use a path other than /dev/null to point to the null device. Ruby provides the File::NULL constant to specify that path in a cross-platform way.

Some platforms (namely, Windows) use a path other than `/dev/null` to
point to the null device.  Ruby provides the `File::NULL` constant to
specify that path in a cross-platform way.
@rafaelfranca rafaelfranca merged commit f807513 into rails:main Feb 24, 2022
rafaelfranca added a commit that referenced this pull request Feb 25, 2022
…-dev_null-to-file_null

Use `File::NULL` instead of `/dev/null`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants