News for hackers. Stuff that matters.
Re:The Open Group Base Specifications Issue 8 by tannhaeuser on Thursday July 25, 2024 @01:58AM (#41065159)
Changes in system interfaces: https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_xsh...

Changes to utilities: https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_xcu...

Seems ratfor77 is gone ;)

Now we only need to update LSB with Docker, io_uring, and systemd LOL

Re:The Open Group Base Specifications Issue 8 by jolmg on Thursday July 25, 2024 @07:06PM (#41074384)
> A suggestion that was not adopted was to modify true and false to take an optional argument, and true would exit true only if the argument was non-zero, and false would exit false only if the argument was non-zero:

> while true $(($x > 5 && $y <= 25))

That's good that it wasn't adopted. I think one of the primary points of usefulness of these commands is as substitutes for whatever other commands the admin may like. Like if you want a user to not have a login shell, you can set the shell to /bin/false. fakechroot also uses /bin/true to substitute other commands like systemctl and ischroot.[1] It just works best if true always returns true regardless of arguments, ditto false.

The example use case isn't compelling either. In bash, you'd do this:

  while (( $x > 5 && $y <= 25 ))
Wonder why `$(())` is standarized, but apparently `(())` isn't.

[1] https://github.com/dex4er/fakechroot/blob/master/scripts/deb...

Re:The Open Group Base Specifications Issue 8 by job on Thursday July 25, 2024 @12:22AM (#41064682)
The POSIX.1-2024 specification now is available to the general public.
Re:The Open Group Base Specifications Issue 8 by fermigier on Thursday July 25, 2024 @04:52AM (#41066370)
IIUC, here's the timeline:

- Issue 8: 2024

- Issue 7: 2017

- Issue 6: 2004

- Issue 5: 1997

- Issue 4: 1992

- Issue 3: 1988

Re:The Open Group Base Specifications Issue 8 by nwellnhof on Thursday July 25, 2024 @07:35AM (#41067345)
You're listing the latest revisions which is wrong. Issue 6 is originally from 2001 and Issue 7 from 2008.
Re:The Open Group Base Specifications Issue 8 by fermigier on Wednesday August 07, 2024 @03:35AM (#41179073)
Thanks. So, as I suspected, the gap between 7 and 8 is quite huge (16 years).
Re:The Open Group Base Specifications Issue 8 by ykonstant on Thursday July 25, 2024 @05:46AM (#41066707)
>Note, however, that "$(( x=5 ))" need not be equivalent to "$(( $x=5 ))" . If the value of the environment variable x is the string "y=" , the expansion of "$(( x=5 ))" would set x to 5 and output 5, but "$(( $x=5 ))" would output 0 if the value of the environment variable y is not 5 and would output 1 if the environment variable y is 5. Similarly, if the value of the environment variable is 4, the expansion of "$(( x=5 ))" would still set x to 5 and output 5, but "$(( $x=5 ))" (which would be equivalent to "$(( 4=5 ))" ) would yield a syntax error.

Ah, never change, Unix shells :) I still love this bonkers language.

Re:The Open Group Base Specifications Issue 8 by BoingBoomTschak on Thursday July 25, 2024 @07:29AM (#41067295)
I think I've used the previous iteration too much for my mental health, I instantly noticed the slight color change from bluish green to greenish blue.
Re:The Open Group Base Specifications Issue 8 by McUsr on Thursday July 25, 2024 @07:56AM (#41067544)
Nice to see a fellow Kraftwerk fan.
Re:The Open Group Base Specifications Issue 8 by xxmarkuski on Thursday July 25, 2024 @10:12AM (#41068902)
I recommend looking up the Wikipedia article [0] on The Open Group, if you haven't heard of them yet. Among other things, they maintain standards such as LDAP and POSIX and also currently own the trademark for UNIX.

[0] https://en.wikipedia.org/wiki/The_Open_Group

Re:The Open Group Base Specifications Issue 8 by rerdavies on Friday July 26, 2024 @12:24AM (#41075759)
Out of curiousity, what is the point of having a publicly accessible standard that's exactly the same as an iso standard you have to pay to access?