4 ms·
You can target POSIX if you want to, but doing that doesn't guarantee shell scripts will work. The blog post stresses this, the difference between POSIX and po
by gaigalas 4mo ago
You can target POSIX if you want to, but doing that doesn't guarantee shell scripts will work.
The blog post stresses this, the difference between POSIX and portability.
If you want portability, testing is better for now. One of the goals of these projects is to more precisely capture a retrospec (what actually works, not what was specified), it's the same thing they did with HTML5.
- echoangle 4mo ago> but doing that doesn't guarantee shell scripts will work. How so? Can you give an example that should work according to the POSIX spec but doesn’t in a POSIX compliant shell? The example in the post is just some behavior the POSIX spec doesn’t specify, so obviously you wouldn’t be allowed to do that when targeting POSIX.
- rascul 4mo agoNot exactly what you asked for, but there's ambiguity in the spec leading to different implementations. https://stackoverflow.com/questions/11376975/is-there-a-minimally-posix-2-compliant-shell/16376043#16376043 https://stackoverflow.com/questions/11376975/is-there-a-mini...