Post Ax6WEo4vuHLdPRSnx2 by mage_of_dragons@mastodon.social
 (DIR) More posts by mage_of_dragons@mastodon.social
 (DIR) Post #Ax6OW1CJaHwfO3c2e8 by mage_of_dragons@mastodon.social
       2025-08-12T17:57:03Z
       
       0 likes, 0 repeats
       
       I still can't believe stdin is file descriptor 0
       
 (DIR) Post #Ax6OW2AZyE9QOxoAa0 by argv_minus_one@mastodon.sdf.org
       2025-08-12T18:30:30Z
       
       1 likes, 0 repeats
       
       @mage_of_dragons What should it be?
       
 (DIR) Post #Ax6WEo4vuHLdPRSnx2 by mage_of_dragons@mastodon.social
       2025-08-12T18:47:33Z
       
       0 likes, 0 repeats
       
       @argv_minus_one imo the output streams should come first
       
 (DIR) Post #Ax6WEozeVOiaFM06MK by evgandr@mastodon.bsd.cafe
       2025-08-12T19:31:15Z
       
       0 likes, 0 repeats
       
       @mage_of_dragons @argv_minus_one And here the main question: stdout or stderr? :drgn_fingergun: I think there were a lot of debates, so at the end engineers decided to use stdin as the first, because it is the only one input stream :drgn_happy_blep:
       
 (DIR) Post #Ax6WEpycqhUVISWnOi by mage_of_dragons@mastodon.social
       2025-08-12T19:32:20Z
       
       0 likes, 0 repeats
       
       @evgandr @argv_minus_one but why would you have stderr as the first? 0 should obviously be stdout
       
 (DIR) Post #Ax6WEqvTJuYwEy3n7Y by evgandr@mastodon.bsd.cafe
       2025-08-12T19:53:57Z
       
       1 likes, 0 repeats
       
       @mage_of_dragons @argv_minus_one But isn't the stream of errors should was more important? Because, in the old times, if something goes wrong then better do not waste CPU time on it. So, the stderr should became 0, not stdout.
       
 (DIR) Post #Ax6WIEbBlH7GWsBYf2 by m0xEE@nosh0b10.m0xee.net
       2025-08-12T20:04:27Z
       
       0 likes, 0 repeats
       
       @evgandr@bsd.cafe @mage_of_dragons@mastodon.social @argv_minus_one@mastodon.sdf.orgTrue — some programs don't have any meaningful output at all, but they still have to have a way of telling you what the error is. However to me the order: stdin, stdout, stderr —  just seems natural 🤷