08-18-2022, 03:19 PM
(08-18-2022, 02:56 PM)bplus Wrote: Linux is not just another OS it is several and who wants to try to code so all of them will work?
Aye, and this is something which I've found makes it almost impossible for me to write code for Linux. Just the other day, I wrote a little program that compiled a file on disk, ran it, and then deleted it when it was finished. My simple, go-to solution, was to use a common SHELL "del tempfile.exe" once the program was finished -- which works fine on Windows, Mac, Ubuntu, Mint, and on and on... but doesn't work on Arch as "del" isn't a part of their distro. Instead, you have to use SHELL "rm tempfile.exe".
Linux is a bazillion different OSes and each one has its own quirks, making it almost impossible to "code for Linux". Instead, you code for certain distros of Linux, and tell the other guys, "..works everywhere else. Good luck sorting the issue out of whatever you're using where it doesn't!"