Remix.run Logo
murphyslaw 2 hours ago

> You can use /dev/stdin, /dev/stdout, /dev/stderr in most cases

Never ever write code that assumes this. These dev shorthands are Linux specific, and you'll even need a certain minimum Linux version.

I cringe at the amount of shell scripts that assume bash is the system interpreter, and not sh or ksh.

Always assume sh, it's the most portable.

Linux != Unix.

lpln3452 an hour ago | parent | next [-]

lol truly informative and clearly something no one here knew. But your terminology is inaccurate. Please change it to GNU/Linux != Unix

Dylan16807 an hour ago | parent | prev [-]

You shouldn't be assuming I'm writing code for Unix.