[2021-12-22T00:59:27Z] ugh why doesn't posix specify TIOCGWINSZ for ioctl(3) :( [2021-12-22T01:01:45Z] sure finding the terminal size is kinda implementation specific but the whole point of posix is to provide a standardized interface to the implementations [2021-12-22T01:03:11Z] but then it requires stuff like ls to adapt their output "to the nature of the output device", "based on the implementation's knowledge of the output device" [2021-12-22T01:03:56Z] just gonna have to hope people set $COLUMNS [2021-12-22T01:04:02Z] the obvious solution is to not use terminals [2021-12-22T01:04:03Z] otherwise they're getting 80 [2021-12-22T01:04:20Z] oh yeah, that must be what they're getting at [2021-12-22T01:05:04Z] MADNESS [2021-12-22T01:15:07Z] Maybe someone could make a standard other than posix? [2021-12-22T01:16:11Z] queue xkcd standards comic [2021-12-22T01:18:51Z] specify UT1 over UTC and eliminate leap seconds once and for all. [2021-12-22T01:23:02Z] Also, i just learned there are NTP servers for UT1, which means at least I'm happy. [2021-12-22T01:27:47Z] just pull a GNU and ignore POSIX [2021-12-22T01:41:30Z] Ignoring at least parts of it seems pretty common nowadays. [2021-12-22T01:42:29Z] phoebos: https://www.austingroupbugs.net/view.php?id=1151 [2021-12-22T01:43:03Z] I think it's okay as long as it's well documented, especially when you have lots of little simple components like kiss. [2021-12-22T01:44:49Z] oh wow [2021-12-22T01:46:06Z] even if its in a newer standard of POSIX, whats even the point [2021-12-22T01:46:53Z] most systems I've seen only try to conform to 2001 or 2008 [2021-12-22T01:49:45Z] just don't care about ancient systems. drop them and move on [2021-12-22T01:50:01Z] illiliti: :D yay [2021-12-22T01:50:06Z] thanks [2021-12-22T01:50:38Z] don't forget to adhere to POSIX as much as possible [2021-12-22T01:51:01Z] yeah, I totally agree [2021-12-22T01:51:23Z] for tc[gs]etwinsize, just gotta wait 20 years for people to realise POSIX updated :p [2021-12-22T01:51:24Z] we should try best to be portable, but not with 40 year old systems [2021-12-22T01:52:07Z] the only standard i care about is posix. if your system doesn't work with posix, buy something newer [2021-12-22T01:55:21Z] the only needed addition to posix is shell local variables :^) [2021-12-22T01:55:54Z] and like it will never happen, but I still don't know of a shell without local variables [2021-12-22T01:56:47Z] yash in posix mode doesn't support local [2021-12-22T01:56:52Z] let me fix that statement and say bourne-like shells without local variables currently used [2021-12-22T01:56:54Z] i mean, you can always make more shells: myvar=1; (myvar=2; foo $myvar;) bar $myvar [2021-12-22T01:57:11Z] illiliti: I thought that it did [2021-12-22T01:58:10Z] I just tried, it works on yash posix mode [2021-12-22T01:58:39Z] hmm, looks like author added support for it [2021-12-22T01:58:50Z] the last time i tried it didn't [2021-12-22T01:58:51Z] phoebos: but creating subshells is worse, and not worth it [2021-12-22T01:59:01Z] ah I see [2021-12-22T01:59:50Z] most shells do add the support for it, because it's one of the most common mistakes [2021-12-22T02:00:20Z] cem: but if you really want "local" variables, subshells provide the same functionality. kinda. if you use a few `export`s for globals [2021-12-22T02:00:21Z] even then, I'd argue that locals are very useful, even if not 100% necessary [2021-12-22T02:01:11Z] globals by default is the most annoying thing in shell [2021-12-22T02:01:56Z] but shell was never meant for real programming [2021-12-22T02:01:59Z] just plumbing [2021-12-22T02:02:46Z] yeah, I get that you can have the same functionality with subshell, but at the end of the day, a subshell is a spawned subprocess [2021-12-22T02:02:59Z] a local variable is cheap [2021-12-22T02:03:07Z] subprocesses are not [2021-12-22T02:03:30Z] ofc [2021-12-22T02:03:55Z] i wouldn't genuinely use subshells just to get local variables [2021-12-22T02:23:52Z] cem: yash even accepts typeset in posix mode. something is wrong... [2021-12-22T02:25:52Z] the most [2021-12-22T02:25:55Z] POSIX-compliant shell in the world! [2021-12-22T02:26:01Z] :^) [2021-12-22T02:26:13Z] it was much stricter before [2021-12-22T03:02:18Z] you start yash with yash -o posixly-correct? [2021-12-22T03:03:54Z] yep [2021-12-22T03:03:57Z] yash -o posixlycorrect [2021-12-22T03:04:19Z] i also tried to run it as sh [2021-12-22T03:24:27Z] spot the patch that's been waiting to be pushed since october: https://git.bvnf.space/bore/ [2021-12-22T03:26:51Z] also does anyone know if the struct dirent * returned by readdir(3) should ever be free(3)'d? [2021-12-22T03:32:09Z] when in doubt, look at the musl source [2021-12-22T03:32:33Z] oh i guess you're not supposed to do anything with the pointer until you're finished reading the dir, and then the pointer will be NULL [2021-12-22T03:32:34Z] :p [2021-12-22T03:53:14Z] Hi [2021-12-22T04:18:40Z] o/ [2021-12-22T04:59:58Z] The only issue with some POSIX shells I have seen is pressing left and right to make changes but all I got is ^[[A or something [2021-12-22T05:00:25Z] Surprisingly, KISS' POSIX shell doesn't [2021-12-22T05:03:09Z] Cuz those shells don't parse escape sequences [2021-12-22T07:01:32Z] Oh [2021-12-22T07:24:58Z] Hi [2021-12-22T07:25:04Z] hi [2021-12-22T07:25:12Z] Been a min [2021-12-22T07:25:24Z] many mins [2021-12-22T07:25:46Z] Unfortunately I use macOS now as my daily driver cause of work [2021-12-22T08:44:01Z] Hi [2021-12-22T11:35:23Z] Trying to install xorg is a chore [2021-12-22T11:36:01Z] I'm stuck in this error [2021-12-22T11:36:05Z] show [2021-12-22T11:36:11Z] Hold on let me show logs [2021-12-22T11:45:39Z] So it stuck on building libeproxy [2021-12-22T11:49:45Z] https://dpaste.com/EBHTJ3K2M.txt [2021-12-22T11:50:38Z] have u modified the mesa build file [2021-12-22T11:50:50Z] Nope [2021-12-22T11:50:59Z] using libglvnd? [2021-12-22T11:51:05Z] Yeah [2021-12-22T11:51:15Z] why [2021-12-22T11:51:33Z] libeproxy doesn't detect mesa [2021-12-22T11:52:15Z] hmm u dont need libglvnd at all, remove libglvnd, rebuild default mesa and then show the log [2021-12-22T11:52:20Z] does it have the same error ? [2021-12-22T11:52:54Z] u might have installed mesa, then installed libglvnd and then removed mesa somehow [2021-12-22T11:52:59Z] so the alternatives werent swapped [2021-12-22T11:53:23Z] but mesa with libglvnd isnt possible unless u alter the build file [2021-12-22T11:53:26Z] oh nvm it checks [2021-12-22T11:53:46Z] /usr/include/EGL doesn't exist right? [2021-12-22T11:54:38Z] Yep [2021-12-22T11:55:09Z] show contents of /var/db/kiss/installed/libglvnd/build and /var/db/kiss/installed/mesa/build and /var/db/kiss/choices [2021-12-22T11:55:52Z] Well I uninstalled libglvnd [2021-12-22T11:56:14Z] Mesa is rebuilding [2021-12-22T11:56:18Z] ok [2021-12-22T11:56:19Z] nice [2021-12-22T12:33:24Z] Done? [2021-12-22T12:33:26Z] lol [2021-12-22T13:03:50Z] I think it's fine now, don't know why it didn't detect Mesa the first time but whatever [2021-12-22T13:04:00Z] Wait nvm [2021-12-22T19:21:54Z] hey guys [2021-12-22T19:22:01Z] im little confused [2021-12-22T19:22:17Z] whats the package that includes egl? [2021-12-22T19:22:33Z] mesa? Or other? [2021-12-22T19:40:10Z] yes