←back to thread

529 points swills | 2 comments | | HN request time: 0.001s | source
Show context
pyuser583 ◴[] No.45688089[source]
I've used /dev/null for exactly this purpose. I have output that needs to go somewhere, and I don't want to worry about whether that somewhere can handle it.

Later on in deployment, it will go somewhere else. Somewhere that has been evaluated for being able to handle it.

In that way, /dev/null is to storage what `true` is to execution - it just works.

replies(1): >>45688260 #
CaptainOfCoit ◴[] No.45688260[source]
Bug free software is a pipe dream, but if there is anything I've never encountered any bugs with, /dev/null and true is certainly in the top 3.
replies(4): >>45688480 #>>45688959 #>>45690296 #>>45692706 #
1. MartijnBraam ◴[] No.45690296[source]
Ah you've never encountered /dev/null not existing yet, so when you try to trash data it will actually create a normal file there so every other program that uses it will actually append that file.

Luckily it's usually a tmpfs

replies(1): >>45693879 #
2. CaptainOfCoit ◴[] No.45693879[source]
> Ah you've never encountered /dev/null not existing yet

I feel like that'd happen because of some other bug, I wouldn't consider that a bug in /dev/null :)