logoalt Hacker News

echoangletoday at 12:53 AM1 replyview on HN

I don’t get this point either. If local is not in the POSIX spec, I guess you can’t use it if you want to be POSIX compatible. Just because many shells do it doesn’t mean it’s POSIX.


Replies

gaigalastoday at 12:59 AM

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.

show 1 reply