[2022-11-29T00:12:57Z] what the HECK [2022-11-29T00:13:04Z] >compiling mpv [2022-11-29T00:13:12Z] >-Dpulse=disabled [2022-11-29T00:13:19Z] >ldd mpv [2022-11-29T00:13:29Z] >libpulse.so.0 not found [2022-11-29T01:13:51Z] Ever compiled Mongodb? [2022-11-29T01:14:21Z] It's one damn slow process. [2022-11-29T01:15:29Z] oh im sure thats way worse. mpv compiles quick, just trying to get it to work [2022-11-29T01:15:50Z] i think its ffmpeg, need to compile that without pulse also [2022-11-29T01:16:44Z] was trying to avoid compiling things like ffmpeg on this machine by using a binary distro, but here we are [2022-11-29T01:18:10Z] trunc88: Regarding Mpv, have u tried the Waf flag ' --disable-caca [2022-11-29T01:19:07Z] first attempt failed right near the end so now trying on latest release rather than git master [2022-11-29T01:19:59Z] i dont think i have caca [2022-11-29T01:20:27Z] Ops [2022-11-29T01:20:36Z] '--disable-pulse' [2022-11-29T01:20:44Z] lol [2022-11-29T01:21:01Z] i used meson with -Dpulse=disabled [2022-11-29T01:21:43Z] i thought i might try waf but im almost positive its ffmpeg because i just tried running ffmpeg and it tells me libpulse wasnt found also [2022-11-29T01:22:29Z] I see [2022-11-29T01:23:28Z] Linux audio is such a mess. [2022-11-29T01:23:41Z] Sndio brings it to shame. [2022-11-29T01:24:07Z] yeah [2022-11-29T01:24:59Z] ffmpeg is actually annoying to build on this because its a core 2 duo. glad i did decide to use a binary distro [2022-11-29T01:26:17Z] Be gentle on that machine. [2022-11-29T01:26:51Z] Which binary distro are u running? [2022-11-29T01:27:31Z] Obarun, it seems pretty cool so far. just installed the other day [2022-11-29T01:28:13Z] dont know of any better options [2022-11-29T01:28:24Z] It has its own init, right? [2022-11-29T01:28:28Z] 66 iirc [2022-11-29T01:29:32Z] 66 is their set of scripts/programs they wrote to manage the s6 init system i think [2022-11-29T01:29:59Z] looks like ffmpeg compile worked [2022-11-29T01:30:23Z] and s6 is by the skarnet people [2022-11-29T01:30:37Z] Oh yeah [2022-11-29T01:32:36Z] havent tried removing udev / dbus yet but i plan to [2022-11-29T01:34:15Z] wow its still looking for libpulse [2022-11-29T01:34:24Z] i hate everything [2022-11-29T01:34:53Z] Dbus is the most intrusive of all the crippy deps. [2022-11-29T01:35:09Z] Come on, don't despair lad. [2022-11-29T01:35:27Z] U can do it. [2022-11-29T01:35:59Z] of course i can but i wanted this to be kinda easy not much fussing around recompiling everything type of deal [2022-11-29T01:36:23Z] we're nearing the point that it would have been easier to just use kiss [2022-11-29T01:36:54Z] i have no idea which ffmpeg deps i need to compile without pulse now [2022-11-29T01:39:39Z] Well, we're for a reason aren't we?... [2022-11-29T01:41:18Z] yes, i was born with the sole purpose of removing satan from my own computer [2022-11-29T01:42:08Z] * Torr sees Terry smirk on the background [2022-11-29T01:42:31Z] RIP [2022-11-29T01:45:43Z] i dont even understand how any of these ffmpeg deps would do it. shouldnt ffmpeg itself be the thing thats outputting to the sound device or whatever? [2022-11-29T01:47:28Z] No idea how Mpv communicates with the sound subsystem. [2022-11-29T01:47:40Z] or am i really going to have to compile every decoder that ffmepg uses [2022-11-29T01:48:11Z] redhat destroyed linux [2022-11-29T01:48:16Z] im so mad [2022-11-29T01:48:26Z] lol [2022-11-29T01:50:02Z] i just wanted to watch ceephax acid crew music videos [2022-11-29T01:52:22Z] i can go through my configure script and look at which libs i can compile w/o pulse but then idk what it got through autodetection [2022-11-29T01:52:39Z] suppose i can use ldd for that [2022-11-29T01:53:18Z] could also disable all autodetection and manually enable what i want but thats super annoying with ffmpeg [2022-11-29T01:55:37Z] how do i tell ffmpeg --disable-pulse and then its still like hhuhhh pulse not found [2022-11-29T01:55:43Z] how is this real life [2022-11-29T01:56:12Z] goes through the entire compile without caring [2022-11-29T01:56:48Z] i should have been serious about learning to code [2022-11-29T01:56:52Z] and saved the world [2022-11-29T02:05:17Z] Already staring at the abyss? [2022-11-29T02:06:54Z] * trunc88 sigh [2022-11-29T02:07:13Z] i might just install libpulse and call it a day [2022-11-29T02:07:24Z] i really really dont want to though [2022-11-29T02:08:11Z] Ceephax Acid Crew has some fine music. [2022-11-29T02:09:47Z] ye he's pretty great. released a new album last year, or 2020 maybe [2022-11-29T02:15:27Z] i also just dont understand why it cant fall back to alsa, not like i didnt enable alsa [2022-11-29T02:15:56Z] "cant find libpulse" fine, ignore it and use alsa [2022-11-29T02:16:35Z] i dont think thats ffmpegs fault though i guess but idk [2022-11-29T02:16:52Z] It's not uncommon to have those options defined as 'ifdefs'. [2022-11-29T02:17:26Z] for runtime or compile time? or both? [2022-11-29T02:18:19Z] Compile time. [2022-11-29T02:19:18Z] well yeah im telling it not to look for pulse with --disable-pulse [2022-11-29T02:20:06Z] but then at runtime it wont run without it [2022-11-29T02:20:58Z] "we allow you to enable multiple sound systems but you need to have all of them installed in order for the program to start" [2022-11-29T02:42:28Z] according to dude in #ffmpeg it should be fine with just --disable-libpulse [2022-11-29T03:22:44Z] trunc88: ffmpeg looks for libpulse for its own audio output stuff. if other libraries happen to link to libpulse that doesn't affect ffmpeg [2022-11-29T03:22:56Z] trunc88: looks like it's not checking for libpulse or compiling with libpulse [2022-11-29T03:23:20Z] so one of its dependencies must require it [2022-11-29T03:24:15Z] anybody more knowledgeable than me able to tell me if this is a contradiction or not? kinda sounds like it to me [2022-11-29T03:24:59Z] Check the source, it's *the* way to learn that stuff. [2022-11-29T03:25:15Z] it is if any of the libraries that ffmpeg depends on links to it [2022-11-29T03:25:30Z] oof defenite contradiction he uses the term "link" here again [2022-11-29T03:26:05Z] tells me it doesnt matter, looks at my log, tells me it must be exactly what i said i thought it was [2022-11-29T03:26:35Z] gotta love it [2022-11-29T03:30:48Z] im not much of a programmer Torr, wish i had actually pursued that more earlier in my life [2022-11-29T03:31:19Z] i did a little bit of java ina high school class and some obj-c for a summer camp thing [2022-11-29T03:33:18Z] trunc88: U don't have to program, just to read the source. [2022-11-29T03:35:21Z] i dont know the language though [2022-11-29T03:44:41Z] wow i am big boy dumb [2022-11-29T03:45:03Z] forgot to put /usr/local/lib into ld.so.conf [2022-11-29T03:45:22Z] first guy didnt even think of that though [2022-11-29T03:45:29Z] but neither did i [2022-11-29T03:46:16Z] Did it compile? [2022-11-29T03:46:35Z] it was already compiling, but it runs now [2022-11-29T03:47:40Z] o/ [2022-11-29T03:48:03Z] ah yeah now i can watch some ceephax [2022-11-29T03:50:45Z] Leaving here, see ya [2022-11-29T03:50:50Z] later [2022-11-29T03:50:59Z] nice talking [2022-11-29T03:51:03Z] Later ^^ [2022-11-29T06:12:14Z] Hi [2022-11-29T06:20:08Z] Does anyone use gkiss/wayland? Please share chromium/firefox binary [2022-11-29T06:23:32Z] I'll send it in few hrs [2022-11-29T06:24:05Z] Ok, thanks [2022-11-29T06:42:35Z] Hi [2022-11-29T07:38:05Z] illiliti: can you consider adding /etc/acpi/PWRF/00000080: poweroff to busybox acpid for easy no-configuration poweroff? [2022-11-29T07:38:19Z] I just installed a open source AI companion. What a time to be alive. [2022-11-29T08:49:41Z] Guest78: [2022-11-29T08:50:40Z] https://file.io/ igL4W0PUNViP [2022-11-29T08:50:48Z] or hxkfFryMdi3Q [2022-11-29T09:08:44Z] testuser[m]: Thanks a lot! [2022-11-29T10:23:31Z] Anyone here experienced with wireguard? Is there a way to enable wireguard just for a specific domain/ip? [2022-11-29T10:23:48Z] ig AllowedIPs is relevant here but I'd rather not update the IP constantly [2022-11-29T10:34:39Z] testuser: ip route tables should work if wg is visible as extra interface, but I haven't used wg [2022-11-29T10:38:29Z] aelspire: yeah it makes wg0 interface [2022-11-29T10:39:01Z] can you give an example for using iproute tables? [2022-11-29T10:39:09Z] ok, one moment [2022-11-29T10:40:11Z] basically you create table with some id and name, add desired ips to it and set wg0 iterface as default route for this table (maybe default will not work and You will need to manipulate it's metric) [2022-11-29T10:40:23Z] but I'll find tutorial on net [2022-11-29T10:41:37Z] http://linux-ip.net/html/routing-tables.html - this one is not very helpful I'm looking for better one [2022-11-29T10:46:25Z] https://datahacker.blog/industry/technology-menu/networking/routes-and-rules/iproute-and-routing-tables [2022-11-29T10:46:42Z] scroll down to creating tables for vpns [2022-11-29T10:47:05Z] around line: "echo 1 vpn1 >> /etc/ip route2/rt_tables" [2022-11-29T10:47:52Z] but I'm sure that I managed to achieve it without firewall [2022-11-29T10:49:02Z] ok I found my notes: sudo ip rule add dport 49012 table test [2022-11-29T10:49:30Z] this adds all traffic to destination port 49012 to table test [2022-11-29T10:50:18Z] /etc/iproute2/rt_tables here I added "200 test" [2022-11-29T10:50:41Z] ip route add default dev wwp0s20u1u2i5 table test [2022-11-29T10:51:40Z] this was using new this interface as default route for rules in table test [2022-11-29T11:04:00Z] but I my case I just needed to use GSM modem to connect to internet and normal interface was used as intranet [2022-11-29T11:04:52Z] if You want to use VPN and not to fallback to your normal interface if wg disconnect You will need to block it in firewall somehow [2022-11-29T11:11:50Z] testuser[m]: Hmm, the file was deleted :( [2022-11-29T11:12:24Z] https://file.io/hxkfFryMdi3Q [2022-11-29T11:13:14Z] "The transfer you requested has been deleted." [2022-11-29T11:14:22Z] oh [2022-11-29T11:14:27Z] ok then lets wait for the testuser [2022-11-29T11:14:39Z] Guest78: it was delted cuz someone clicked the link [2022-11-29T11:14:48Z] it only works once [2022-11-29T11:14:50Z] wait [2022-11-29T11:15:23Z] Guest78: create a dm with me [2022-11-29T11:16:10Z] Hmm, I guess I downloaded it [2022-11-29T11:16:31Z] testuser[m]: ok [2022-11-29T11:19:44Z] Guest78: https://termbin.com/4nzo [2022-11-29T11:21:26Z] Thanks again [2022-11-29T11:21:36Z] (I couldn't register (I'm from a phone) [2022-11-29T15:06:25Z] testuser[m]: A little silly question: do you mind if I use your binary in my repository? [2022-11-29T15:08:17Z] which [2022-11-29T15:08:21Z] firefox [2022-11-29T15:09:22Z] which repository lol [2022-11-29T15:09:31Z] ah [2022-11-29T15:11:28Z] https://0x0.st/o0jH.txt [2022-11-29T15:11:33Z] ;) [2022-11-29T15:17:05Z] nullcoder is a badass name why are you Guest78 [2022-11-29T15:17:32Z] I don't know :) [2022-11-29T15:18:05Z] Hi [2022-11-29T15:18:10Z] also make sure to use bin/ in your repository [2022-11-29T15:19:10Z] wael[m]: Yes, I know [2022-11-29T15:27:11Z] hell yea [2022-11-29T15:27:14Z] hello nullcoder [2022-11-29T15:27:36Z] Nice to meet you, wael [2022-11-29T15:36:12Z] https://tmp.bvnf.space/b.c [2022-11-29T15:36:17Z] find the bug [2022-11-29T15:38:10Z] answer: struct textpair tp is on the heap for setup_sx, but is used for the callback in w[2], which gets used in MainLoop which is called from main [2022-11-29T15:38:28Z] s/heap/stack/ [2022-11-29T15:38:41Z] so it's gone from the stack when it's needed [2022-11-29T15:41:49Z] solution: static struct textpair tp [2022-11-29T16:03:08Z] blargh, now i have to figure out my original trouble with ffmpeg [2022-11-29T16:04:43Z] phoebos: how could anyone figure out that &tp is being stored by makebutton in global state without checking doc [2022-11-29T16:15:15Z] obviously just find the relevant line in the library source [2022-11-29T16:15:41Z] hi from my libsx IRC client [2022-11-29T16:15:49Z] post pics [2022-11-29T16:16:06Z] you using an IRC library or just a couple routines you hacked together yourself? [2022-11-29T16:16:50Z] https://github.com/sgerwk/pdftoroff [2022-11-29T16:16:50Z] also, this is a really nice program [2022-11-29T16:17:00Z] https://tmp.bvnf.space/Screenshot_20221129_161623.png [2022-11-29T16:17:33Z] nice, dude [2022-11-29T16:17:48Z] IRC library? no [2022-11-29T16:18:09Z] * midfavila shrugs [2022-11-29T16:20:12Z] need to figure out scrolling in a text widget [2022-11-29T16:21:17Z] with a scrollbar or on content update? [2022-11-29T16:21:31Z] or just with a scrollwheel proper? [2022-11-29T16:21:45Z] :content update, ideally. currently writing to it causes it to jump up to the top [2022-11-29T16:22:17Z] could always write a small routine to handle updating and jumping to bottom, then call that instead of just updating the contents of the text buffer directly... or something [2022-11-29T16:22:17Z] idk [2022-11-29T16:22:21Z] that's the naive approach [2022-11-29T16:22:58Z] PRIVMSG #kisslinux :hmm [2022-11-29T16:23:15Z] if i knew more about the athena widgets internally i'd have a better suggestion [2022-11-29T16:23:43Z] i know there's an internal structure that textClass uses to keep track of its state... maybe you can just an element in that or whatever [2022-11-29T16:23:49Z] * midfavila shrugs again [2022-11-29T16:23:53Z] libsx also hides the routines which let you insert or delete text in arbitrary places. currently i'm having to read the whole contents, append the new line, and write it all back [2022-11-29T16:24:02Z] rip [2022-11-29T16:24:18Z] yeah the more i learn about sx the more i learn that i only really like it conceptually [2022-11-29T16:24:35Z] if there was just a tad more freedom it'd be really nice [2022-11-29T16:26:07Z] i've managed to use some Xt routines alongside libsx. I do like it, I'll see if I can use those xaw text routines still [2022-11-29T16:26:22Z] go for it [2022-11-29T16:28:24Z] "obviously just find the relevant..." <- bruh i mean just from the 10 lines u posted without knowing what the lib is [2022-11-29T16:30:20Z] yeah sorry, I was pretty much talking to myself [2022-11-29T16:30:26Z] https://git.bvnf.space/sxirc/ [2022-11-29T16:33:46Z] :DDDDDDDDDDDD [2022-11-29T16:33:58Z] oh huh [2022-11-29T16:34:07Z] a minimal IRC client doesn't take much does it? [2022-11-29T16:34:59Z] tbf, this is really just a graphical fronted to nc [2022-11-29T16:35:13Z] have to PRIVMSG #channel :msg and reply to PINGs [2022-11-29T16:35:30Z] well, i figure that wouldn't be too hard to implement, honestly [2022-11-29T16:35:43Z] if I knew more about... everything, I'd take a shot at implementing that stuff [2022-11-29T16:35:52Z] having a prototype Athena client using sx would be neat [2022-11-29T16:36:07Z] at least until I write my own and totally upstage you :^) [2022-11-29T16:36:50Z] :v i know nothing but just hack together stuff for fun [2022-11-29T16:37:12Z] but I know you need to understand *everything* before taking a shot [2022-11-29T16:37:20Z] rip [2022-11-29T16:37:58Z] idk i'm trying to get over that [2022-11-29T16:38:48Z] aaa i can't decide if i wanna work on fetch or read the Xt manual [2022-11-29T16:39:03Z] i should *probably* finish fetch [2022-11-29T16:46:27Z] i've only skimmed and then used it for specific reference [2022-11-29T17:05:45Z] nooooo you can't just refer to material [2022-11-29T17:05:50Z] you have to memorize it cover to cover!!! [2022-11-29T17:06:00Z] otherwise you can't be a Real Programmer:tm: [2022-11-29T17:11:29Z] is pipefail a real thing in sh POSIX [2022-11-29T17:13:18Z] "One justification for ignoring the contents of IFS upon entry to the script, beyond security considerations, is to assist possible future shell compilers" [2022-11-29T17:13:18Z] where's my shell compiler, open group? where is it? [2022-11-29T17:13:44Z] wael: no [2022-11-29T17:14:29Z] awh [2022-11-29T17:16:20Z] pipefail will be posix soon [2022-11-29T17:17:12Z] what is it? [2022-11-29T17:19:54Z] illiliti: how many decades for it to be available everywhere [2022-11-29T17:20:47Z] test1 | test2 [2022-11-29T17:20:57Z] midfavila: with pipefail, test2 won't run if test1 failed [2022-11-29T17:21:16Z] aah [2022-11-29T17:22:37Z] testuser[m]: it is available already [2022-11-29T17:24:24Z] fake [2022-11-29T17:25:01Z] give me a shell name which does not support it [2022-11-29T17:25:32Z] dash? [2022-11-29T17:26:22Z] ok [2022-11-29T17:26:37Z] but is it byyy posixxxx [2022-11-29T17:26:40Z] cuz muh posix certificiations [2022-11-29T17:26:59Z] ash is so much nicer than dash [2022-11-29T17:27:46Z] but dash is fast, I like using dash as POSIX shell for scripts and fish as interactive shell [2022-11-29T17:27:54Z] yash is so much nicer than ash [2022-11-29T17:28:11Z] lol i like how 3 shells are just replacing 1 letter [2022-11-29T17:28:18Z] or adding [2022-11-29T17:28:29Z] Replace with zwsp [2022-11-29T17:31:13Z] i see there is a patch available in dash ml [2022-11-29T17:31:22Z] https://www.spinics.net/lists/dash/msg02198.html [2022-11-29T17:31:48Z] aelspire do you know of a standalone ash? [2022-11-29T17:32:38Z] midfavila: I don't, probably [2022-11-29T17:32:52Z] rip [2022-11-29T17:32:54Z] currently I'm using busybox's ash on alpine and kiss [2022-11-29T17:32:58Z] aah [2022-11-29T17:33:01Z] that ash [2022-11-29T17:33:09Z] precursor of dash? [2022-11-29T17:33:14Z] yeah [2022-11-29T17:33:27Z] afaik ash went from the BSDs and Minix to slackware, where it was picked up by debian [2022-11-29T17:33:30Z] I haven't used it [2022-11-29T17:33:43Z] most cursed shell I had displeasure using is csh [2022-11-29T17:33:49Z] fwiw i'm not talking about sash [2022-11-29T17:34:00Z] which is, somewhat confusingly, not related to ash [2022-11-29T17:34:09Z] busybox ash sucks [2022-11-29T17:34:14Z] and yeah, csh is... unpleasant [2022-11-29T17:34:24Z] ksh is much nicer [2022-11-29T17:34:31Z] AFAIK current ash from busybox is fork of previous dash's version [2022-11-29T17:34:38Z] but don't quote me on ti [2022-11-29T17:34:43Z] feq [2022-11-29T17:34:53Z] midfavila: u can just build busybox with ash enabled [2022-11-29T17:36:22Z] currently I'm using ash/dash for speed I've lot of small scripts in my kakoune's config [2022-11-29T17:36:38Z] and I can immediately tell when it's using bash… [2022-11-29T17:37:24Z] dash is faster acording to some weird benchmark on net but I cannot tell difference [2022-11-29T17:37:32Z] between ash and dash [2022-11-29T17:40:17Z] testuser[m]: mmmmmmmmmeh [2022-11-29T17:40:19Z] don't wanna [2022-11-29T17:40:34Z] also i don't think i *can* build busybox right now, pff [2022-11-29T17:41:12Z] Whats wrong with busybox? [2022-11-29T17:41:48Z] i just personally don't like it. there's nothing wrong with it, strictly speaking [2022-11-29T17:42:02Z] I've heard about toybox but i find busybox in sweet spot between completly sucklesss and comfortable for daily usage [2022-11-29T17:42:15Z] i daily the suckless tools :p [2022-11-29T17:42:30Z] busybox is source of CVEs [2022-11-29T17:42:38Z] they have their fair share of issues though, so i'm (very slowly) writing my own replacement [2022-11-29T17:42:48Z] mhm, I didn't know [2022-11-29T17:42:57Z] due to absolutely fucked codebase [2022-11-29T17:43:06Z] look at their ash code [2022-11-29T17:43:09Z] i haven't looked at their code myself [2022-11-29T17:43:15Z] it's a mess [2022-11-29T17:43:17Z] isn't surprising to hear it's gross [2022-11-29T17:43:32Z] that's part of why i dislike suckless [2022-11-29T17:43:36Z] I've tried to debug problem in gnu libc [2022-11-29T17:43:36Z] their programs are hard to read [2022-11-29T17:43:48Z] now no other code looks like mess for me… [2022-11-29T17:43:51Z] busybox has nothing to do with suckless [2022-11-29T17:43:58Z] yes, obviously [2022-11-29T17:44:01Z] i'm drawing a comparison [2022-11-29T17:44:33Z] my "fair share of issues" wrt: suckless tools was in part referring to their code style being hideously dense and hard to work with, at least imo [2022-11-29T17:44:53Z] to hear that busybox is also hard to work with and "a mess" as you put it is a convenient hook to hang a comparison on [2022-11-29T17:45:17Z] yeah, I usually prefer writing code in such way, so I'll know what it's doing after month… [2022-11-29T17:46:51Z] but other programmers are found of ifdefs zigzags in code… [2022-11-29T17:47:01Z] ifdef users should be shot [2022-11-29T17:47:03Z] change my mind [2022-11-29T17:47:12Z] and typedefs [2022-11-29T17:47:27Z] typedefs are fine in relation to structs and only structs [2022-11-29T17:47:39Z] needless obfuscation [2022-11-29T17:47:48Z] typedef void******** ptr [2022-11-29T17:48:00Z] a) [2022-11-29T17:48:02Z] contrived example [2022-11-29T17:48:05Z] b) [2022-11-29T17:48:08Z] function pointers are exception [2022-11-29T17:48:14Z] you shouldn't have so many indirection levels in the first place [2022-11-29T17:48:15Z] c) [2022-11-29T17:48:19Z] otherwise typedef is harmful [2022-11-29T17:48:25Z] it's a one-time thing [2022-11-29T17:48:37Z] typedef is ok only for opaque structs [2022-11-29T17:48:38Z] you just say "hey what's that again?", grep for it, and it's done [2022-11-29T17:48:40Z] and C++ should burn in hell [2022-11-29T17:48:47Z] it's *significantly* less harmful than the CPP [2022-11-29T17:48:57Z] I'm forced to use C++ and Qt in work [2022-11-29T17:49:02Z] i'm sorry [2022-11-29T17:49:16Z] and have seen my share of error messages longer than my code [2022-11-29T17:49:34Z] Template moment [2022-11-29T17:49:36Z] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138 [2022-11-29T17:49:43Z] look at this beauty [2022-11-29T17:49:56Z] lmao [2022-11-29T17:50:02Z] C++lets really be like this [2022-11-29T17:50:19Z] hah, holy shit [2022-11-29T17:51:46Z] LOL [2022-11-29T17:54:11Z] it's basically what is happening if everything is template [2022-11-29T18:03:34Z] C++ took major role in convincing me that technology need to be scaled to human level again [2022-11-29T19:02:38Z] midfavila: you may find my server_connect function useful for your fetch [2022-11-29T19:02:48Z] probably! [2022-11-29T19:03:03Z] i'll see if there's anything i can ~~steal~~ borrow for dial from it [2022-11-29T19:03:33Z] hehe [2022-11-29T19:04:19Z] i think i stole it pretty much verbatim from freeaddrinfo(3) [2022-11-29T19:04:41Z] * midfavila nod-nods [2022-11-29T19:05:02Z] i actually need to rewrite dial() to avoid a few unnecessary branches [2022-11-29T19:05:13Z] as is i test for whether a TLS context is present too late [2022-11-29T21:43:26Z] whats an alternative to wc -L [2022-11-29T21:52:37Z] longest=0; while read -r line; do longest=${#line}; done < file; echo $longest [2022-11-29T21:53:08Z] oh wait [2022-11-29T21:53:09Z] * if [ ${#line} -gt $longest ]; then ... [2022-11-29T21:53:12Z] or awk [2022-11-29T21:53:12Z] yes [2022-11-29T21:53:22Z] posted wrong snippet [2022-11-29T21:58:18Z] longest=0; while read -r line; do len=${#line}; longest=$((len > longest ? len : longest)); done < file; echo $longest [2022-11-29T21:58:31Z] pure shell, no [ [2022-11-29T22:03:48Z] nice, i didn't know $(()) had the ternary operator [2022-11-29T22:14:26Z] Dylan taught me [2022-11-29T22:14:33Z] https://github.com/dylanaraps/pure-sh-bible#ternary-tests