Posix.1-2024 is published
ieeexplore.ieee.org
Posix.1-2024 is published
1–10 of 87 posts
Re: Posix.1-2024 is published
#2Re: Posix.1-2024 is published
#3* readlink/realpath (https://austingroupbugs.net/view.php?id=1457)
* find -print0, xargs -0 and read -d (https://austingroupbugs.net/view.php?id=243)
* find -iname (https://austingroupbugs.net/view.php?id=1031
* sed -E (https://austingroupbugs.net/view.php?id=528)
* set -o pipefail (https://austingroupbugs.net/view.php?id=789)
Re: Posix.1-2024 is published
#4Re: Posix.1-2024 is published
#5Some goodies for POSIX sh programmers: * readlink/realpath ( https://austingroupbugs.net/view.php?id=1457 ) * find -print0, xargs -0 and read -d ( https://austingroupbugs.net/view.php?id=243 ) * find -iname ( https://austingroupbugs.net/view.php?id=1031 * sed -E ( https://austingroupbugs.net/view.php?id=528 ) * set -o pipefail ( https://austingroupbugs.net/view.php?id=789 )
Re: Posix.1-2024 is published
#6Re: Posix.1-2024 is published
#7Is there a changelog for these standards?
Re: Posix.1-2024 is published
#8As a specific example, the seemingly simple matter of when the shell decides to split a string based on $IFS and when it does not were quite confusing to me until I went through the specification here: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
For example, if
a="foo bar"
then ls $a
will split the value into two fields (thus two arguments to ls). Of course we should surround $a with double-quotes to avoid the field splitting. However the following is fine: case $a in
No field splitting occurs here. However, to be kind to your code reviewer, you might want to double-quote this anyway for the sake of simplicity and consistency. Behaviour like this is specified in sections "Field Splitting" and "Case Conditional Construct" of the aforementioned link. Specification documents like this were formative in in my journey toward learning to write shell scripts confidently.Re: Posix.1-2024 is published
#9Is 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 and/or iOS fully POSIX compliant?
Any good blog or presentation describing the current state of POSIX?
Re: Posix.1-2024 is published
#10Is there a changelog for these standards?
As an implementer I'm often more interested in the exact changes than in the current wording. My product is already supporting the old spec, what do I need to change to support the new one? A redlined version is more valuable than the full PDF. Bonus points if it actually comes with the reasoning behind it so I don't have to guess why some seemingly-arbitrary change was made.
My dream documentation is a simple Markdown file (or similar) stored in a git repository. It allows me to see the current version, the old version, the diff, and the commit messages can even store the reasoning.