Earlier quoted context omitted.
ircv3 did it
With all due respect, you don't seem to understand what POSIX is.
Posix.1-2024 is published
61–70 of 87 posts
Re: Posix.1-2024 is published
#62Earlier quoted context omitted.
set -o pipefail is now POSIX compliant. Use it in all POSIX shell scripts, not just bash scripts.
Oh wow, I didn't know that. I am pretty sure I had a sh trip up on it just recently, so I thought it still was bash only. Yes, use it everywhere possible.
Re: Posix.1-2024 is published
#63The PDF is behind a login wall :(
Re: Posix.1-2024 is published
#64Re: Posix.1-2024 is published
#65Earlier quoted context omitted.
What would it even mean for an interface description to "support" WASM which is a (virtual) machine target for implementations?
webrtc, ws, postmessage?
I'll ask again, what would it mean for POSIX to "support" Wasm?
Re: Posix.1-2024 is published
#66Earlier quoted context omitted.
The original discussion on why Debian switched from bash to dash for /bin/sh is insightful. https://lwn.net/Articles/343924/ One big factor is for performance reasons in shell scripts. At the time, the switch decreased boot times for Debian by 7.5%. Bourne shell features add a lot of overhead and that's not always an acceptable tradeoff. Also, if you're using bash features in a script, you can always just add #!/bin/…
Prefer `#!/usr/bin/env bash` instead, since /bin/bash isn't a standardized location for bash (even across Linux distros). The former causes $PATH to be searched for bash.
Re: Posix.1-2024 is published
#67Earlier quoted context omitted.
The original discussion on why Debian switched from bash to dash for /bin/sh is insightful. https://lwn.net/Articles/343924/ One big factor is for performance reasons in shell scripts. At the time, the switch decreased boot times for Debian by 7.5%. Bourne shell features add a lot of overhead and that's not always an acceptable tradeoff. Also, if you're using bash features in a script, you can always just add #!/bin/…
Prefer `#!/usr/bin/env bash` instead, since /bin/bash isn't a standardized location for bash (even across Linux distros). The former causes $PATH to be searched for bash.
EDIT: I was thinking about Linux, but I suppose macOS users are stuck with needing this for Homebrew-supplied bash?
Re: Posix.1-2024 is published
#68Where is POSIX actually useful today? Is it mostly for shell scripts? Aren't people targetting bash or basic bourne shell features intead of posix? Is shellcheck checking for best practices instead of POSIX compliance? And for other applications (GUI, servers, etc) strict POSIX compliance might be too restrictive? And with many things being Linux (or Linux-like like WSL) the need for this might be less? Are Android a…
Meaning: i don’t want to know all the 6000 functions glibc support, i want to know what will (for example) net/inet.h will bring to my code (ideally with documentation).
For sonme reason that doesn’t seem to be a thing. Not for glibc for sure. But the SUS does that. And i like it.
Re: Posix.1-2024 is published
#69Where is POSIX actually useful today? Is it mostly for shell scripts? Aren't people targetting bash or basic bourne shell features intead of posix? Is shellcheck checking for best practices instead of POSIX compliance? And for other applications (GUI, servers, etc) strict POSIX compliance might be too restrictive? And with many things being Linux (or Linux-like like WSL) the need for this might be less? Are Android a…
Every now and again, I get annoyed by those cases where Linux has some API/utility/etc but macOS doesn't. Getting that API/utility into POSIX greatly increases the odds that Apple will end up implementing it. (Whether just by copying it from FreeBSD, or by writing it themselves.)