--- Log opened Mon Feb 05 00:00:12 2024 00:01 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 00:07 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 00:16 -!- Lucanis [~Lucanis@user/lucanis] has quit [Ping timeout: 264 seconds] 00:17 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 00:17 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 00:19 -!- ikarso [uid475540@id-475540.tinside.irccloud.com] has quit [Quit: Connection closed for inactivity] 00:23 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 268 seconds] 00:23 -!- bilegeek [~bilegeek@2600:1008:b00b:6566:5eea:38e6:54d6:a59a] has joined #openbsd 00:24 -!- Noisytoot [~noisytoot@sourcehut/user/noisytoot] has quit [Excess Flood] 00:25 -!- Noisytoot [~noisytoot@sourcehut/user/noisytoot] has joined #openbsd 00:26 -!- lavaball [~Melissa@31.204.155.215] has quit [Remote host closed the connection] 00:26 -!- EtherNet [~ethernet@user/ethernet] has quit [Ping timeout: 264 seconds] 00:28 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 00:28 -!- mlw [~mlw@41.223.180.239] has joined #openbsd 00:31 -!- foton [~foton@user/foton] has quit [Quit: %Bye, bye, ...%] 00:31 -!- foton [~foton@user/foton] has joined #openbsd 00:38 -!- EtherNet [~ethernet@user/ethernet] has joined #openbsd 00:43 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 00:47 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 00:47 -!- jardsonto [~jardsonto@187.40.117.248] has quit [Quit: leaving] 00:51 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 00:52 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 00:55 -!- ficonni [~ficonni@178.220.11.238] has quit [Remote host closed the connection] 00:56 -!- jacobk [~quassel@64.189.201.150] has quit [Ping timeout: 240 seconds] 00:57 -!- gman999 [~GMan999@user/gman999] has joined #openbsd 01:02 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 01:06 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 01:09 -!- byteskeptical [~amnesia@user/byteskeptical] has joined #openbsd 01:17 -!- dutch [~DutchIngr@user/dutch] has quit [Quit: WeeChat 4.1.1] 01:21 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 276 seconds] 01:25 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 01:25 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 01:25 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 01:26 -!- dutch [~DutchIngr@user/dutch] has joined #openbsd 01:33 -!- nonlinear [~nonlinear@h24-49-96-104.altonm.broadband.dynamic.tds.net] has joined #openbsd 01:40 -!- nonlinear is now known as nb0x 01:41 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 01:44 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 01:45 -!- SexWarrior [~DankFrank@2a01:4b00:940e:f600:54f7:123a:614:e0df] has quit [Quit: Leaving] 01:45 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 01:45 -!- lagash [lagash@basedsimp.freeirc.org] has joined #openbsd 01:57 < oldlaptop> sibiria: (twenty years later, the eggdrop community remains synonymous with crappy tcl code) 01:58 < oldlaptop> perhaps not the best thing to use to judge the language 01:58 < thrig> some sqlite thing started as a TCL extension 01:58 < oldlaptop> got WAY out of hand, apparently 01:59 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 01:59 < thrig> and other such fossil technology 02:00 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 02:00 * oldlaptop is not impedance-matched to fossil 02:08 -!- nyah [~nyah@york-06-b2-v4wan-167893-cust646.vm25.cable.virginm.net] has quit [Quit: leaving] 02:28 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 260 seconds] 02:32 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 02:33 -!- zimmer [~zimmer@user/zimmer] has quit [Ping timeout: 256 seconds] 02:33 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 02:34 -!- adig [~default@109.166.139.48] has joined #openbsd 02:34 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 02:40 -!- vdamewood [~vdamewood@fedora/vdamewood] has quit [Quit: My Mac has gone to sleep. ZZZzzz…] 02:42 -!- stgl [~stgl@2a03:b0c0:3:d0::cad:a001] has quit [Quit: ZNC 1.8.2 - https://znc.in] 02:43 -!- stgl [~stgl@2a03:b0c0:3:d0::cad:a001] has joined #openbsd 02:47 -!- sunwind` [~paradox@33.189.208.46.dyn.plus.net] has quit [Quit: Outside Context Problem.] 02:48 -!- arch-nemesis [~arch-neme@user/arch-nemesis] has joined #openbsd 02:51 -!- sunwind [~paradox@33.189.208.46.dyn.plus.net] has joined #openbsd 03:07 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 03:08 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 03:10 -!- dead1 [~dead1@user/dead1] has joined #openbsd 03:14 -!- emmanuelux_ [~emmanuelu@user/emmanuelux] has quit [Quit: au revoir] 03:19 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Ping timeout: 255 seconds] 03:25 -!- rustyy [~rusty@74.3.163.187] has joined #openbsd 03:25 -!- rustyy [~rusty@74.3.163.187] has quit [Client Quit] 03:31 -!- rustyy [~rusty@74.3.163.187] has joined #openbsd 03:34 -!- sjg [~sjg@user/sjg] has quit [Ping timeout: 264 seconds] 03:34 -!- todd [~todd@gateway/tor-sasl/toddf] has quit [Ping timeout: 255 seconds] 03:35 -!- sjg [~sjg@user/sjg] has joined #openbsd 03:37 -!- todd [~todd@gateway/tor-sasl/toddf] has joined #openbsd 03:40 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 03:41 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 03:42 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 03:47 -!- seninha [~seninha@user/seninha] has quit [Ping timeout: 264 seconds] 03:57 -!- fflam [~mdt@pool-100-7-27-90.rcmdva.fios.verizon.net] has quit [Read error: Connection reset by peer] 03:59 -!- fflam [~mdt@pool-100-7-27-90.rcmdva.fios.verizon.net] has joined #openbsd 04:05 -!- rustyy [~rusty@74.3.163.187] has quit [Ping timeout: 268 seconds] 04:06 -!- RypPn [~RypPn@user/ryppn] has quit [Quit: Real-time updating is paused. (Resume)] 04:08 -!- adig [~default@109.166.139.48] has quit [Read error: Connection reset by peer] 04:09 -!- RypPn [~RypPn@user/ryppn] has joined #openbsd 04:09 -!- jacobk [~quassel@129.110.241.106] has joined #openbsd 04:16 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 04:16 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 04:17 -!- rustyy [~rusty@74.3.163.187] has joined #openbsd 04:23 -!- Hackerpcs [~user@user/hackerpcs] has quit [Quit: Hackerpcs] 04:25 -!- Hackerpcs [~user@user/hackerpcs] has joined #openbsd 04:25 -!- Hackerpcs [~user@user/hackerpcs] has quit [Max SendQ exceeded] 04:31 -!- Hackerpcs [~user@user/hackerpcs] has joined #openbsd 04:35 -!- rnkn [~rnkn@starbeastie.paulwrankin.com] has quit [Quit: rnkn] 04:36 -!- fallback [fallback@2605:6400:20:b4:2df7:c15d:5c14:7a83] has joined #openbsd 04:48 -!- fettucci1 [~fettuccin@gateway/tor-sasl/fettuccine] has joined #openbsd 04:49 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has quit [Ping timeout: 255 seconds] 04:50 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 04:50 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 04:51 -!- mxz [~mxz@user/mxz] has quit [Ping timeout: 260 seconds] 04:52 -!- jacobk [~quassel@129.110.241.106] has quit [Ping timeout: 268 seconds] 05:02 -!- elastic_dog [~elastic_d@2a01:118f:620:5c00:ed7c:6283:1fd4:b8a4] has quit [Ping timeout: 268 seconds] 05:02 -!- epony [~epony@user/epony] has quit [Remote host closed the connection] 05:04 -!- epony [~epony@user/epony] has joined #openbsd 05:05 -!- fettucci1 [~fettuccin@gateway/tor-sasl/fettuccine] has quit [Remote host closed the connection] 05:05 -!- jacobk [~quassel@64.189.201.150] has joined #openbsd 05:06 -!- grobi [~grobi@user/grobi] has quit [Read error: Connection reset by peer] 05:10 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has joined #openbsd 05:10 -!- ublx [~ublx@user/ublx] has quit [Quit: ublx] 05:13 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has quit [Remote host closed the connection] 05:13 -!- elastic_dog [~elastic_d@2a01:118f:620:5c00:ed7c:6283:1fd4:b8a4] has joined #openbsd 05:13 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has joined #openbsd 05:22 -!- KaitoDaumoto [~asdf@user/kaitodaumoto] has joined #openbsd 05:24 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 05:24 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 05:24 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 05:25 -!- vdamewood [~vdamewood@fedora/vdamewood] has joined #openbsd 05:27 -!- ripsum [~richard@192.248.144.158] has joined #openbsd 05:27 -!- Noisytoot [~noisytoot@sourcehut/user/noisytoot] has quit [Excess Flood] 05:30 -!- edthix [~Thunderbi@124.82.213.99] has joined #openbsd 05:31 -!- Noisytoot [~noisytoot@sourcehut/user/noisytoot] has joined #openbsd 05:40 -!- gce108_ [~gce@user/gce108] has quit [Quit: Leaving] 05:40 -!- thrig [~thrig@c-73-221-177-233.hsd1.wa.comcast.net] has quit [Quit: leaving] 05:43 -!- dead1 [~dead1@user/dead1] has quit [Quit: Leaving] 05:43 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has left #openbsd [] 05:44 -!- Siva- [Siva@lecturify.net] has joined #openbsd 05:50 -!- AlaskanEmily [~AlaskanEm@user/alaskanemily] has quit [Remote host closed the connection] 05:51 -!- tercaL [~tercaL@user/tercal] has joined #openbsd 05:53 -!- runelind [~runelind@user/runelind] has joined #openbsd 05:53 -!- runelind_ [~runelind@user/runelind] has quit [Ping timeout: 246 seconds] 05:53 -!- tozhu [~tozhu@182.150.116.99] has quit [Quit: tozhu] 05:54 -!- gce108 [~gce@user/gce108] has joined #openbsd 05:57 -!- elastic_dog [~elastic_d@2a01:118f:620:5c00:ed7c:6283:1fd4:b8a4] has quit [Ping timeout: 256 seconds] 05:58 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 05:59 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 06:03 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has joined #openbsd 06:04 -!- zetef [~quassel@95.77.17.251] has joined #openbsd 06:06 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 06:08 -!- tozhu [~tozhu@182.150.116.99] has quit [Client Quit] 06:09 -!- elastic_dog [~elastic_d@2a01:118f:620:5c00:ed7c:6283:1fd4:b8a4] has joined #openbsd 06:19 -!- user71 [~user71@2001:1530:1002:9117:1e6f:65ff:fe88:557f] has joined #openbsd 06:20 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 268 seconds] 06:21 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 06:22 -!- frkazoid333 [~frkazoid3@2603-9000-cff0-b8e0-d916-a2ad-45a0-dceb.inf6.spectrum.com] has joined #openbsd 06:24 -!- adip [~adip@c133-141.icpnet.pl] has joined #openbsd 06:25 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 06:29 -!- tozhu [~tozhu@182.150.116.99] has quit [Ping timeout: 252 seconds] 06:32 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 06:33 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 06:44 -!- A1ice [~a1ice@gateway/tor-sasl/a1ice] has joined #openbsd 06:44 -!- beastie [~luis@user/thebeastie] has quit [Quit: WeeChat 4.1.2] 06:45 -!- uncleyear [~ian@178.66.158.62] has joined #openbsd 06:47 -!- zetef [~quassel@95.77.17.251] has quit [Remote host closed the connection] 06:48 -!- shamoe [uid613739@user/shamoe] has quit [Quit: Connection closed for inactivity] 06:48 -!- zetef [~quassel@95.77.17.251] has joined #openbsd 06:51 -!- vysn [~vysn@user/vysn] has joined #openbsd 06:53 -!- euphores [~SASL_euph@user/euphores] has quit [Quit: Leaving.] 06:53 -!- zetef [~quassel@95.77.17.251] has quit [Ping timeout: 268 seconds] 06:54 -!- uncleyear [~ian@178.66.158.62] has quit [Quit: Lost terminal] 06:54 -!- uncleyear [~ian@178.66.158.62] has joined #openbsd 06:57 -!- horrad [~horrad@p50989fe8.dip0.t-ipconnect.de] has joined #openbsd 06:58 -!- mxz [~mxz@user/mxz] has joined #openbsd 07:00 -!- euphores [~SASL_euph@user/euphores] has joined #openbsd 07:03 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has left #openbsd [] 07:05 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has quit [Remote host closed the connection] 07:06 -!- djhankb [~djhankb@208.113.164.68] has quit [Read error: Connection reset by peer] 07:06 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has joined #openbsd 07:06 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 07:08 -!- sonya [~nologin@gateway/tor-sasl/sonya] has joined #openbsd 07:08 -!- euphores [~SASL_euph@user/euphores] has quit [Remote host closed the connection] 07:09 -!- euphores [~SASL_euph@user/euphores] has joined #openbsd 07:14 -!- struchu [~struchu@staticline-31-183-134-31.toya.net.pl] has joined #openbsd 07:19 -!- lil_lasagna [~lil_lasag@178.237.236.239] has joined #openbsd 07:21 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 07:26 -!- hsw [~hsw@2001-b030-2303-0104-0172-0025-0012-0132.hinet-ip6.hinet.net] has quit [Read error: Connection reset by peer] 07:27 < lil_lasagna> hi, I was wondering why doesn't more code in openbsd use length-based strings as opposed to null terminated strings. They are more efficient and safer, and enable richer string manipulation. Plus, you can always create a null terminated string out of them when needed, such as to interface to some other API that expects a null terminated string 07:27 -!- hsw [~hsw@2001-b030-2303-0104-0172-0025-0012-0132.hinet-ip6.hinet.net] has joined #openbsd 07:29 < __gilles> they also don't exist natively in C and can only work if you only ever work with them through functions, which you can't enforce 07:30 -!- tozhu [~tozhu@182.150.116.99] has quit [Quit: tozhu] 07:30 < quinq> How is that safer to not have an explicitely terminated string? 07:30 < __gilles> yeah that too 07:31 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 07:31 < quinq> Oh, hi __gilles :) 07:32 < __gilles> hi ! 07:33 -!- Jaywalker [~Jaywalker@209.33.126.194] has quit [Ping timeout: 264 seconds] 07:33 < lil_lasagna> for simple tools made by one person, I don't see the issue. If you want to enforce that people use them through functions, you can make it opaque and just use a pointer. As for them not existing natively in C, that is true, but that doesn't mean that we can't create our own structs. As for why they are safer, they are safer in the sense that all 07:33 < lil_lasagna> functions that work on these strings won't accept a char *, but a string struct, so they will always have the length and work from there. You can have a string struct whose underlying char* is indeed null terminated and a string_view that makes no such requeriment, and use string_views in your code as much as possible, sort of like what C++ does 07:34 -!- Jaywalker [~Jaywalker@209.33.126.194] has joined #openbsd 07:34 < lil_lasagna> and as I said, whenever you need to interface one of your strings with an external dependency, you can just use your regular string struct or if it's a string_view, create a null terminated string from it 07:35 < lil_lasagna> this also makes strings more efficient, as you don't need to call strlen (plus you won't get an overflow if the string you are calling strlen on is not null terminated) 07:35 < quinq> Well, it's always a question of memory used vs theorical speed 07:36 < quinq> You won't get an overflow on strlen ever :) 07:36 < quinq> objects in C have determined maximum size 07:37 -!- lolok [~lolok@user/lolok] has quit [Remote host closed the connection] 07:37 < quinq> And why would you get an overflow with strlen and not with your stored string size? 07:37 -!- tozhu [~tozhu@182.150.116.99] has quit [Quit: tozhu] 07:37 < quinq> Ah sorry, I misunderstood what you meant 07:38 < quinq> You're arguing not to not null-terminate string, but to create a new overhead of wrapping strings into structs that contain their length 07:38 -!- Noisytoot [~noisytoot@sourcehut/user/noisytoot] has quit [Excess Flood] 07:38 < quinq> Like a belt & suspender model 07:38 < quinq> s 07:39 < quinq> Why not, if you're sure your programs/libraries have discipline enough to keep that size updated and recreate a whole set/ecosystem of string-manipulation functions 07:40 < quinq> But I don't think that actually improves safety, it also adds complexity, so more bugs 07:40 -!- lolok [~lolok@user/lolok] has joined #openbsd 07:40 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 07:40 < lil_lasagna> that is my biggest issue with that approach, you need to create a new whole string manipulation library that takes advantage of this new string type 07:40 < quinq> Also that adds the incentive to work with char arrays instead of actual strings 07:41 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 07:41 -!- Noisytoot [~noisytoot@sourcehut/user/noisytoot] has joined #openbsd 07:41 < lil_lasagna> and you need to make sure that you are not introducing any vulnerabilities 07:41 < quinq> Instead of working with strings, and in very special cases, just char arrays where special care should actually be taken 07:41 < quinq> yeah 07:44 < lil_lasagna> I just keep thinking back about the GTA V incident where they were using strlen on a huge JSON string and wasting minutes and though that if anyone has gotten C string right at this point, it has to be openbsd, but most of the improvements made are in safely handling null terminated strings, so I got curious 07:45 -!- ikarso [uid475540@id-475540.tinside.irccloud.com] has joined #openbsd 07:52 -!- feriman [~feriman@user/feriman] has joined #openbsd 08:03 -!- eki [~eki@dsl-hkibng41-54f85a-212.dhcp.inet.fi] has quit [Quit: leaving] 08:05 -!- eki [~eki@dsl-hkibng41-54f85a-212.dhcp.inet.fi] has joined #openbsd 08:10 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 08:11 -!- grobi [~grobi@user/grobi] has joined #openbsd 08:14 < __gilles> 07:40 < quinq> But I don't think that actually improves safety, it also adds complexity, so more bugs 08:14 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 08:14 < __gilles> i agree 08:14 < __gilles> I worked with nginx recently and they have a string struct used everywhere which does exactly that 08:14 < __gilles> but there are some situations where the size is not incremented automagically by one of their functions 08:14 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 08:14 < __gilles> if you forget to do it yourself, instant buffer overflow 08:15 < __gilles> so that's a real-life app using this model and I find it nightmarish to deal with, much more complex and error prone than nul-ended strings 08:17 < __gilles> also for this idea to work, you'd really need to get rid of pointers and enforce a lot of new constraints at compiler level 08:17 < __gilles> otherwise it's just half-baked imo 08:17 < IcePic> yeah, there has been at least one major issue with hostnames and certificates due to hostnames being nul-terminated strings "everywhere" and certificates allowing NULs inside their lenght+chararray string type 08:20 -!- whiteman809 [~whiteman8@paraboletancza.org] has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in] 08:21 -!- whiteman809 [~whiteman8@paraboletancza.org] has joined #openbsd 08:25 -!- Siva- is now known as Siva 08:27 -!- tozhu [~tozhu@182.150.116.99] has quit [Quit: tozhu] 08:28 -!- tozhu [~tozhu@182.150.116.99] has joined #openbsd 08:28 -!- tozhu [~tozhu@182.150.116.99] has quit [Client Quit] 08:30 -!- Nei [~ailin@openSUSE/member/ailin-nemui] has quit [Ping timeout: 268 seconds] 08:35 < IcePic> so while len+chars is an alternative, you have to be super-super careful when moving data from one domain to another, and 99.9% of all C libs will probably be of the old bad type, so until you get a huge majority for your new string struct you will be doing these kinds of changes back and forth 08:43 -!- grobi [~grobi@user/grobi] has quit [Read error: Connection reset by peer] 08:47 < IcePic> then some smaller issue would be "can a string be longer than 2^32" so that it needs a 64bit len which for almost all cases will be overkill, but sometimes it might be needed 08:47 -!- b50d [~b50d@62.96.54.30] has joined #openbsd 08:48 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 08:48 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 08:50 < lil_lasagna> I mean at that point a strlen would kill performance and not be a good solution anyways 08:51 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Ping timeout: 255 seconds] 08:51 -!- cruncher [~cruncher@user/cruncher] has joined #openbsd 08:52 -!- xse [~xse@krkrkr.org] has quit [Ping timeout: 268 seconds] 08:52 -!- jjf [4dfd5f9d80@user/jjf] has quit [Ping timeout: 256 seconds] 08:52 -!- apangona [e83a60e6f0@2a03:6000:1812:100::3d8] has quit [Ping timeout: 256 seconds] 08:52 -!- paulgrmn [4935b8e2c8@user/paulgrmn] has quit [Ping timeout: 256 seconds] 08:52 -!- SusanTheNerd [94eebe0143@user/SusanTheNerd] has quit [Ping timeout: 256 seconds] 08:52 -!- akarle [be2b385958@user/akarle] has quit [Ping timeout: 256 seconds] 08:53 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 08:53 -!- akspecs [00cc8321af@sourcehut/user/akspecs] has quit [Ping timeout: 256 seconds] 08:53 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Remote host closed the connection] 08:53 -!- cruncher [~cruncher@user/cruncher] has quit [Client Quit] 08:55 -!- SusanTheNerd [94eebe0143@user/SusanTheNerd] has joined #openbsd 08:55 -!- jjf [4dfd5f9d80@user/jjf] has joined #openbsd 08:55 -!- akspecs [00cc8321af@sourcehut/user/akspecs] has joined #openbsd 08:56 -!- akarle [be2b385958@user/akarle] has joined #openbsd 08:56 -!- paulgrmn [4935b8e2c8@user/paulgrmn] has joined #openbsd 08:56 -!- apangona [e83a60e6f0@2a03:6000:1812:100::3d8] has joined #openbsd 08:56 -!- D0peX [~D0peX@xepod.dopex.nl] has quit [Ping timeout: 256 seconds] 08:56 -!- letoram [~bjorn@user/letoram] has quit [Ping timeout: 240 seconds] 08:57 -!- xs [~xs@inda.re] has quit [Read error: Connection reset by peer] 08:57 -!- xs [~xs@inda.re] has joined #openbsd 08:58 -!- D0peX [~D0peX@xepod.dopex.nl] has joined #openbsd 08:58 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 08:58 -!- letoram [~bjorn@user/letoram] has joined #openbsd 09:01 < IcePic> lil_lasagna: will be slow and doesn't work are two quite different problem domains 09:02 -!- DINOWILLIAM [~DINOWILLI@177.92.53.3] has quit [Ping timeout: 252 seconds] 09:03 < IcePic> few people probably predicted that Firefox/Chrome can't be compiled with debug on 32-bit arches but needs to be cross-compiled from 64bit machines, where linking in the old days was sort of a glorified "cat *.o > final_binary" but now is something completely different that requires >4G ram at times 09:04 -!- frkazoid333 [~frkazoid3@2603-9000-cff0-b8e0-d916-a2ad-45a0-dceb.inf6.spectrum.com] has quit [Ping timeout: 256 seconds] 09:05 -!- DINOWILLIAM [~DINOWILLI@177.92.53.3] has joined #openbsd 09:13 -!- yclept [~yclept@user/yclept] has joined #openbsd 09:15 -!- jlavsund [~jlavsund@37.250.119.83.bredband.tre.se] has joined #openbsd 09:22 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 09:22 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 09:32 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 09:34 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 09:37 -!- Leopold [~quassel@23.137.249.65] has quit [Ping timeout: 276 seconds] 09:38 -!- psydroid [~psydroid@user/psydroid] has joined #openbsd 09:39 -!- nyah [~nyah@york-06-b2-v4wan-167893-cust646.vm25.cable.virginm.net] has joined #openbsd 09:40 < sonya> IcePic: hell yeah… i tried to build an old seamonkey/ff with gtk2 on native i386 (P-IV, 2.4GHz, 448Mb RAM) and resulted in skia's assembler faults, that required SSE4+ cpu.. build without skia failed (don't remember why) and i ended up with ff-52.9.0 ESR build with gtk3 and current nss/nspr.. just give up to build smth like ff-45.9.0esr, but i do like an idea to have smth with gtk2+js (except ducktape 09:40 < sonya> js).. 09:41 -!- Leopold [~quassel@23.137.249.65] has joined #openbsd 09:45 < sibiria> oldlaptop: i didn't learn TCL from eggdrop. it's just where i made most use of it outside work 09:47 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 09:48 < sonya> sibiria: it was on my to-do list to learn 'fluid' and to write even a single non-console/non-terminal app.. task successfuly failed.. till now.. :) 09:50 -!- user71 [~user71@2001:1530:1002:9117:1e6f:65ff:fe88:557f] has quit [Quit: Leaving] 09:51 -!- Nei [~ailin@openSUSE/member/ailin-nemui] has joined #openbsd 09:52 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has joined #openbsd 09:53 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 09:53 < sibiria> never heard of it 09:56 -!- djhankb [~djhankb@208.113.164.68] has quit [Read error: Connection reset by peer] 09:56 -!- lil_lasagna [~lil_lasag@178.237.236.239] has quit [Quit: Client closed] 09:56 -!- epony [~epony@user/epony] has quit [Remote host closed the connection] 09:56 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 09:57 -!- epony [~epony@user/epony] has joined #openbsd 10:00 -!- runelind_ [~runelind@user/runelind] has joined #openbsd 10:02 -!- runelind [~runelind@user/runelind] has quit [Ping timeout: 268 seconds] 10:15 < kodcode> anyone compiled for the RP2040 (RPI Pico)? 10:17 -!- edthix [~Thunderbi@124.82.213.99] has quit [Quit: edthix] 10:26 -!- gbowne1 [~gbowne1@97.113.75.249] has quit [Quit: Leaving] 10:28 -!- bilegeek [~bilegeek@2600:1008:b00b:6566:5eea:38e6:54d6:a59a] has quit [Quit: Leaving] 10:30 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 10:31 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 10:39 -!- ichdasic1 [~tfiebig@shells01.dus01.as59645.net] has joined #openbsd 10:39 -!- vysn_ [~vysn@user/vysn] has joined #openbsd 10:39 -!- vysn [~vysn@user/vysn] has quit [Killed (erbium.libera.chat (Nickname regained by services))] 10:39 -!- vysn_ is now known as vysn 10:39 -!- brynet_ [~brynet@brynet.ca] has joined #openbsd 10:39 -!- bleb_ [~cm@user/bleb] has joined #openbsd 10:40 -!- whatcc_ [~whatcc@user/whatcc] has joined #openbsd 10:40 -!- inz_ [~inz@95.216.19.108] has joined #openbsd 10:40 -!- dkeav1 [~dkeav@45.76.24.175] has joined #openbsd 10:41 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 10:41 -!- Livestradamus_ [~quassel@176.44.90.74] has quit [Read error: Connection reset by peer] 10:42 -!- tux0r- [~tux0r@rosaelefanten.org] has joined #openbsd 10:42 -!- elky [el@libera/staff/el] has joined #openbsd 10:43 -!- Livestradamus [~quassel@user/livestradamus] has joined #openbsd 10:44 -!- Netsplit *.net <-> *.split quits: bsdbandit01_, swaggboi, whatcc, ichdasich, lagash, apotheon, zwr, el, linetrace, eki, (+30 more, use /NETSPLIT to show all of them) 10:44 -!- nckx_ is now known as nckx 10:44 -!- bsdbandit01__ is now known as bsdbandit01_ 10:44 -!- Nei_ is now known as Nei 10:44 -!- unwired8 is now known as unwired 10:44 -!- itok_ is now known as itok 10:44 -!- cdcd_ is now known as cdcd 10:45 -!- bleb_ is now known as bleb 10:47 -!- Netsplit over, joins: fallback 10:48 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 264 seconds] 10:48 -!- brynet_ is now known as brynet 10:51 -!- swaggboi [~kvirc@slackware.uk/supporter/swaggboi] has joined #openbsd 10:51 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 10:52 -!- user71 [~user71@2001:1530:1002:9117:1e6f:65ff:fe88:557f] has joined #openbsd 10:59 -!- mlw [~mlw@41.223.180.239] has quit [Ping timeout: 256 seconds] 10:59 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 11:00 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 11:01 -!- xse [~xse@krkrkr.org] has joined #openbsd 11:05 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 11:05 -!- BillyZane2 [~BillyZane@user/BillyZane] has joined #openbsd 11:05 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 11:06 -!- away is now known as mx 11:07 -!- BillyZane [~BillyZane@user/BillyZane] has quit [Ping timeout: 260 seconds] 11:10 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has quit [Ping timeout: 255 seconds] 11:12 -!- ichilton [~ichilton@zeniv.linux.org.uk] has quit [Ping timeout: 252 seconds] 11:12 -!- lavaball [~Melissa@31.204.155.215] has joined #openbsd 11:17 -!- rscastilho2024 [~rscastilh@189.61.140.215] has joined #openbsd 11:19 -!- rscastilho2024 [~rscastilh@189.61.140.215] has quit [Remote host closed the connection] 11:26 -!- zelest [~jesper@213-66-161-116-no600.tbcn.telia.com] has quit [Quit: "Remember, hacking is more than just a crime. It's a survival trait." -- Razor] 11:29 -!- Poster [~poster@075-188-004-153.res.spectrum.com] has quit [Quit: ZNC - https://znc.in] 11:29 -!- Poster [~poster@075-188-004-153.res.spectrum.com] has joined #openbsd 11:29 -!- rynn [~rynn@216.30.158.143] has quit [Ping timeout: 256 seconds] 11:31 -!- uorka [~lesta@user/uorka] has joined #openbsd 11:31 -!- rynn [~rynn@216.30.158.143] has joined #openbsd 11:33 -!- virys [~virys@user/lovisabet] has joined #openbsd 11:33 -!- uorka [~lesta@user/uorka] has left #openbsd [] 11:34 -!- frkazoid333 [~frkazoid3@035-145-250-184.res.spectrum.com] has joined #openbsd 11:35 -!- notgull [~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com] has joined #openbsd 11:35 -!- frkzoid [~frkazoid3@2603-9000-cff0-b8e0-c8f2-9f4a-89ca-d4bc.inf6.spectrum.com] has joined #openbsd 11:39 -!- frkazoid333 [~frkazoid3@035-145-250-184.res.spectrum.com] has quit [Ping timeout: 252 seconds] 11:39 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 11:39 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 11:40 -!- notgull [~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com] has quit [Ping timeout: 252 seconds] 11:42 -!- unwired [~unwired@user/unwired] has quit [Quit: leaving] 11:42 -!- harpia [~harpia@2804:fc:8dd2:7c00:b62e:99ff:fee9:cc51] has joined #openbsd 11:42 -!- harpia [~harpia@2804:fc:8dd2:7c00:b62e:99ff:fee9:cc51] has quit [Client Quit] 11:42 -!- unwired [~unwired@user/unwired] has joined #openbsd 11:51 -!- mlw [~mlw@154.127.5.87] has joined #openbsd 12:00 -!- scain [~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com] has joined #openbsd 12:08 -!- slim [~slim@user/slim] has quit [Quit: bWFkZSB5b3UgbG9vaw==] 12:10 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has joined #openbsd 12:11 -!- slim [~slim@user/slim] has joined #openbsd 12:11 -!- byteskeptical [~amnesia@user/byteskeptical] has quit [Quit: Lost terminal] 12:13 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 12:14 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 12:19 < natmeo> I still have much adoration for tcl 12:19 -!- basiic [~basiic@80.89.74.54] has joined #openbsd 12:20 -!- xet7 [~xet7@user/xet7] has joined #openbsd 12:24 -!- krzych [krzych@nroot.pl] has joined #openbsd 12:29 -!- euphores [~SASL_euph@user/euphores] has quit [Quit: Leaving.] 12:31 -!- user71 [~user71@2001:1530:1002:9117:1e6f:65ff:fe88:557f] has quit [Quit: Leaving] 12:40 -!- euphores [~SASL_euph@user/euphores] has joined #openbsd 12:43 -!- lagash [lagash@basedsimp.freeirc.org] has joined #openbsd 12:44 -!- mlw [~mlw@154.127.5.87] has quit [Ping timeout: 260 seconds] 12:45 -!- nedko [~nedko@gateway/tor-sasl/nedko] has quit [Ping timeout: 255 seconds] 12:45 -!- mlw [~mlw@154.127.13.247] has joined #openbsd 12:46 -!- nedko [~nedko@gateway/tor-sasl/nedko] has joined #openbsd 12:46 -!- TinyTimmyTokyo [TinyTimmyT@kuschku.de] has joined #openbsd 12:47 -!- dkeav1 is now known as dkeav 12:47 -!- dkeav [~dkeav@45.76.24.175] has quit [Changing host] 12:47 -!- dkeav [~dkeav@user/dkeav] has joined #openbsd 12:47 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 12:48 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 12:50 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 12:50 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 12:52 -!- dutch [~DutchIngr@user/dutch] has quit [Quit: WeeChat 4.2.1] 12:58 -!- dutch [~DutchIngr@user/dutch] has joined #openbsd 13:07 -!- grobi [~grobi@user/grobi] has joined #openbsd 13:08 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 13:08 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 13:13 -!- MentalExcuse [~MentalExc@45.142.235.39] has quit [Quit: Oops] 13:14 -!- MentalExcuse [~MentalExc@inetz.connected.by.freedominter.net] has joined #openbsd 13:16 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 13:19 -!- donofrio_ [~donofrio@c-68-40-123-196.hsd1.mi.comcast.net] has quit [Ping timeout: 264 seconds] 13:20 -!- donofrio [~donofrio@c-68-40-123-196.hsd1.mi.comcast.net] has joined #openbsd 13:20 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 13:21 -!- mlw [~mlw@154.127.13.247] has quit [Ping timeout: 276 seconds] 13:22 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 13:22 -!- SirJitsu-work1 [~SirJitsu@162-231-111-175.lightspeed.livnmi.sbcglobal.net] has quit [Ping timeout: 255 seconds] 13:22 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 13:24 -!- gumnos [~gumnos@2600:1702:410:f440:ba70:f4ff:fe1e:1ef2] has quit [Ping timeout: 260 seconds] 13:24 -!- gumnos [~gumnos@2600:1702:410:f440:ba70:f4ff:fe1e:1ef2] has joined #openbsd 13:28 -!- mlw [~mlw@154.127.13.194] has joined #openbsd 13:28 -!- SirJitsu-work1 [~SirJitsu@162-231-111-175.lightspeed.livnmi.sbcglobal.net] has joined #openbsd 13:30 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 13:30 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 13:31 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 13:32 < basiic> curious to know if anyone using i3 has set up i3bar displaying memory? command i3status starts with saying ¨Memory status information is not supported on this system¨ 13:32 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 13:36 -!- jagtalon [~jag@user/jagtalon] has joined #openbsd 13:41 < natmeo> mine seems to be ok 13:42 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 13:43 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 13:44 -!- shazaum [~Thunderbi@user/shazaum] has joined #openbsd 13:45 < basiic> could you please share insights of memory entry in i3status.conf? 13:46 -!- shazaum [~Thunderbi@user/shazaum] has quit [Client Quit] 13:48 -!- user71 [~user71@2001:1530:1002:9117:c2f9:107d:afb3:2] has joined #openbsd 13:48 -!- byteskeptical [~amnesia@user/byteskeptical] has joined #openbsd 13:49 -!- user71 [~user71@2001:1530:1002:9117:c2f9:107d:afb3:2] has quit [Client Quit] 13:53 -!- byteskeptical [~amnesia@user/byteskeptical] has quit [Remote host closed the connection] 13:56 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 13:56 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 13:57 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 268 seconds] 13:58 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 13:59 -!- byteskeptical [~amnesia@user/byteskeptical] has joined #openbsd 14:03 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 14:04 < natmeo> https://paste.debian.net/1306357/ 14:04 < natmeo> i think it's standard 14:04 -!- yella [~jammin@user/yella] has joined #openbsd 14:04 < natmeo> i3status does say the same thing on start, but it displays the memory 14:05 -!- struchu [~struchu@staticline-31-183-134-31.toya.net.pl] has quit [Quit: WeeChat 4.1.3] 14:06 < basiic> thanks! but yeah, its default. hmm, wonder where program top gets the info for memory. Could not find in dmesg or sysctl info about used memory 14:07 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 14:09 -!- struchu [~struchu@staticline-31-183-134-31.toya.net.pl] has joined #openbsd 14:09 -!- tozhu [~tozhu@118.122.106.210] has quit [Client Quit] 14:09 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 14:10 < IcePic> basiic: sysctl kern.malloc has tons of info, perhaps it gets it from there? 14:11 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 14:12 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 14:12 -!- polarian [~polarian@znc.polarian.dev] has quit [Quit: Polarian has disappeared] 14:12 -!- SirJitsu-work [~SirJitsu@162-231-111-175.lightspeed.livnmi.sbcglobal.net] has joined #openbsd 14:12 -!- Bradipo [~amb@50.77.44.29] has joined #openbsd 14:13 -!- SirJitsu-work1 [~SirJitsu@162-231-111-175.lightspeed.livnmi.sbcglobal.net] has quit [Ping timeout: 255 seconds] 14:14 -!- polarian [~polarian@znc.polarian.dev] has joined #openbsd 14:17 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 14:18 -!- a51 [a51@gateway/vpn/protonvpn/a51] has quit [Quit: WeeChat 4.2.1] 14:19 -!- gman999 [~GMan999@user/gman999] has quit [Quit: WeeChat 4.0.4] 14:20 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 14:23 -!- tozhu [~tozhu@118.122.106.210] has quit [Client Quit] 14:25 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 14:27 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 14:28 -!- Xenguy [~Xenguy@user/xenguy] has quit [Quit: Q. Always play like a bore? A.What would Wei Yi do?] 14:29 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 14:30 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 14:31 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 14:31 -!- vdamewood [~vdamewood@fedora/vdamewood] has quit [Quit: Life beckons] 14:33 -!- MentalExcuse [~MentalExc@inetz.connected.by.freedominter.net] has quit [Ping timeout: 260 seconds] 14:35 -!- KaitoDaumoto [~asdf@user/kaitodaumoto] has quit [Ping timeout: 264 seconds] 14:36 -!- byteskeptical [~amnesia@user/byteskeptical] has quit [Remote host closed the connection] 14:37 -!- MentalExcuse [~MentalExc@45.142.235.39] has joined #openbsd 14:37 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 14:39 -!- harpia [~dougs@2804:fc:8dd2:7c00:3d3c:66c:78f6:7cca] has joined #openbsd 14:40 -!- varioust [~varioust@gateway/tor-sasl/varioust] has joined #openbsd 14:41 < harpia> How do you call a user-defined function from xargs? 14:41 < harpia> I tried "export function_name", it still fails with "xargs: function_name: No such file or directory" 14:41 -!- namaste [~namaste@user/xyk] has quit [Ping timeout: 276 seconds] 14:41 -!- Lucas6023 [~Lucas6023@gateway/tor-sasl/lucas6023] has quit [Quit: leaving] 14:42 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 14:42 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 14:42 -!- Lucas6023 [~Lucas6023@moon.lgv5.net] has joined #openbsd 14:43 < k0ga> harpia: you cannot do that. xargs is a program that execs the arguments that it receives 14:43 < pardis> you cannot call a shell function using xargs 14:43 < k0ga> it is not a shell builtin or similar 14:43 < pardis> but the good news is 1) you almost never need xargs, and 2) if you have a reusable function, it should be a script instead so that you can call it from places other than your interactive shell 14:43 < pardis> so this problem need not exist 14:44 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 14:46 -!- xet7 [~xet7@user/xet7] has quit [Remote host closed the connection] 14:47 < harpia> It's in a script. I'm trying to call my shell function for every line of a text file. "cat /etc/textfile | xargs -n 1 my_function" 14:47 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 14:47 -!- byteskeptical [~amnesia@user/byteskeptical] has joined #openbsd 14:48 < sibiria> while read r; do something.sh $r; done < /etc/textfile 14:48 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 14:49 < harpia> I heard it's a bad idea to use a shell loop for this: https://unix.stackexchange.com/questions/169716/why-is-using-a-shell-loop-to-process-text-considered-bad-practice 14:50 < harpia> they suggest using xargs instead 14:50 < sibiria> do you have control of the input? then don't worry 14:51 -!- raspbeguy [~raspbeguy@wireguard/tunneler/raspbeguy] has joined #openbsd 14:52 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Remote host closed the connection] 14:52 < sibiria> it's not like xargs will save you from malicious input. it's a concern all the same, and if you're accepting input from others you will still want to sanitize 14:52 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 14:53 < pardis> the top answer in that thread you linked says "Using a shell loop to process text may make sense when your task involves what the shell is good at: launching external programs." 14:53 < pardis> which is exactly what you're doing here 14:53 < pardis> (a function is arguably not really an "external program", but in terms of invocation it is indistinguishable from one) 14:54 < harpia> ah, I see 14:54 < harpia> I'll use the while loop 14:55 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 14:58 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 14:59 -!- epony [~epony@user/epony] has quit [Remote host closed the connection] 15:00 -!- epony [~epony@user/epony] has joined #openbsd 15:00 < Lucas6023> harpia: btw, `xargs -n 1` might not work as you want. Take a look at the output of `printf '%s\n' "a line with spaces" "something else" | xargs -n 1 printf "%s\n"` 15:01 -!- msamsing [~msa@085081053204.dynamic.telenor.dk] has joined #openbsd 15:01 < Lucas6023> I'll add something to the loop that sibiria suggested too: use `read -r` 15:01 < Lucas6023> and odn't forget to quote the arguments 15:03 -!- feriman_ [~feriman@user/feriman] has joined #openbsd 15:03 -!- notgull [~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com] has joined #openbsd 15:04 < sibiria> quoting, sanitizing, always obvious 15:04 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 15:05 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 15:09 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 15:10 -!- feriman_ [~feriman@user/feriman] has quit [Ping timeout: 255 seconds] 15:11 -!- tozhu [~tozhu@118.122.106.210] has quit [Quit: tozhu] 15:11 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 15:11 -!- tozhu [~tozhu@118.122.106.210] has joined #openbsd 15:13 -!- msamsing [~msa@085081053204.dynamic.telenor.dk] has quit [Quit: leaving] 15:13 -!- a51 [a51@gateway/vpn/protonvpn/a51] has joined #openbsd 15:17 < Bradipo> Lucas6023: Why read -r? 15:18 < Lucas6023> read the fabulous manual, breavyn 15:18 -!- struchu [~struchu@staticline-31-183-134-31.toya.net.pl] has quit [Quit: WeeChat 4.1.3] 15:18 < Lucas6023> sorry, Bradipo 15:19 < phy1729> while IFS= read -r line; is what you usually want 15:19 < Lucas6023> for reading the whole line, `IFS` doesn't really matter 15:19 < phy1729> it does 15:19 < Bradipo> Yes, I read the fabulous manual... 15:20 < Lucas6023> phy1729: IFS is used for field splitting and assigning to multiple variables. Given there is a single variable in here, it doesn't matter. 15:20 < Bradipo> It doesn't say what -r is for, it says what does not happen when it's in use. :-) 15:20 -!- gknux [~gknux@user/galaxy-knuckles/x-3015990] has quit [Quit: ....and i am outta here....] 15:20 < phy1729> Lucas6023: now try on a line with leading whitespace 15:20 < Bradipo> "If the input line ends in a backslash and the -r option was not used"... 15:20 < Bradipo> Guess one has to get used to thinking in reverse polish notation. 15:21 < harpia> For context, my script creates backups (powered by cron) on a separate storage device. I didn't want to hardcode the paths to backup, so I'm reading them from a text file. 15:21 < pardis> rsync can already read paths from a file 15:22 < Bradipo> So I suppose -r does *not* strip backslash and newline? 15:22 < phy1729> yes 15:23 < Lucas6023> phy1729: point taken 15:24 -!- notgull [~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com] has quit [Ping timeout: 264 seconds] 15:25 -!- gknux [~gknux@user/galaxy-knuckles/x-3015990] has joined #openbsd 15:25 -!- gman999 [~GMan999@user/gman999] has joined #openbsd 15:35 -!- namaste [~namaste@user/xyk] has joined #openbsd 15:36 -!- shamoe [uid613739@user/shamoe] has joined #openbsd 15:37 -!- lavaball [~Melissa@31.204.155.215] has quit [Remote host closed the connection] 15:39 -!- varioust [~varioust@gateway/tor-sasl/varioust] has quit [Remote host closed the connection] 15:39 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 15:39 -!- varioust [~varioust@gateway/tor-sasl/varioust] has joined #openbsd 15:39 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 15:40 -!- raspbeguy [~raspbeguy@wireguard/tunneler/raspbeguy] has quit [Ping timeout: 252 seconds] 15:42 -!- MentalExcuse [~MentalExc@45.142.235.39] has quit [Ping timeout: 260 seconds] 15:42 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has left #openbsd [] 15:44 -!- MentalExcuse [~MentalExc@45.142.235.39] has joined #openbsd 15:45 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 15:46 -!- jagtalon [~jag@user/jagtalon] has quit [Quit: leaving] 15:47 -!- jagtalon [~jag@user/jagtalon] has joined #openbsd 15:48 -!- A1ice [~a1ice@gateway/tor-sasl/a1ice] has quit [Quit: Unlibre time out!] 15:50 -!- feriman_ [~feriman@user/feriman] has joined #openbsd 15:50 -!- horrad [~horrad@p50989fe8.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 15:51 -!- mlw [~mlw@154.127.13.194] has quit [Ping timeout: 264 seconds] 15:51 -!- Night-Shade [~Tim@ip5b416a07.dynamic.kabel-deutschland.de] has joined #openbsd 15:53 -!- MentalExcuse [~MentalExc@45.142.235.39] has quit [Ping timeout: 252 seconds] 15:53 -!- jagtalon [~jag@user/jagtalon] has quit [Quit: leaving] 15:53 -!- reset [~reset@user/reset] has quit [Quit: reset] 15:53 -!- mlw [~mlw@154.127.13.82] has joined #openbsd 15:53 -!- a51 [a51@gateway/vpn/protonvpn/a51] has quit [Quit: WeeChat 4.2.1] 15:53 -!- MentalExcuse [~MentalExc@45.142.235.39] has joined #openbsd 15:56 -!- a51 [a51@gateway/vpn/protonvpn/a51] has joined #openbsd 15:56 -!- jagtalon [~jag@user/jagtalon] has joined #openbsd 15:57 -!- ivdsangen [~ivo@86-95-161-96.fixed.kpn.net] has joined #openbsd 15:57 -!- thrig [~thrig@c-73-221-177-233.hsd1.wa.comcast.net] has joined #openbsd 15:58 -!- Night-Shade [~Tim@ip5b416a07.dynamic.kabel-deutschland.de] has quit [Ping timeout: 276 seconds] 15:58 -!- MentalExcuse [~MentalExc@45.142.235.39] has quit [Ping timeout: 252 seconds] 16:01 -!- MentalExcuse [~MentalExc@inetz.connected.by.freedominter.net] has joined #openbsd 16:02 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Ping timeout: 255 seconds] 16:03 -!- harpia [~dougs@2804:fc:8dd2:7c00:3d3c:66c:78f6:7cca] has quit [Quit: Konversation terminated!] 16:04 -!- jacobk [~quassel@64.189.201.150] has quit [Ping timeout: 260 seconds] 16:08 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has joined #openbsd 16:10 -!- m1dnight [~christoph@78-22-2-15.access.telenet.be] has quit [Quit: WeeChat 4.2.1] 16:11 -!- m1dnight [~christoph@78-22-2-15.access.telenet.be] has joined #openbsd 16:13 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 16:14 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 16:16 -!- enwu [~enwu@user/enwu] has joined #openbsd 16:21 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 16:22 -!- byteskeptical [~amnesia@user/byteskeptical] has quit [Ping timeout: 240 seconds] 16:22 -!- byteskeptical [~amnesia@user/byteskeptical] has joined #openbsd 16:26 -!- elky is now known as el 16:26 -!- bob_x2 [~bob_x@user/bob-x1/x-8934932] has quit [Ping timeout: 255 seconds] 16:30 -!- m1dnight [~christoph@78-22-2-15.access.telenet.be] has quit [Quit: WeeChat 4.2.1] 16:30 -!- m1dnight [~christoph@78-22-2-15.access.telenet.be] has joined #openbsd 16:32 -!- gh34 [~textual@184-058-181-106.res.spectrum.com] has joined #openbsd 16:34 -!- epony [~epony@user/epony] has quit [Quit: QUIT] 16:36 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has left #openbsd [] 16:36 -!- zimmer [~zimmer@user/zimmer] has quit [Ping timeout: 276 seconds] 16:36 -!- ublx [~ublx@user/ublx] has joined #openbsd 16:40 -!- TommyC [~TommyC@user/tommyc] has quit [Ping timeout: 268 seconds] 16:40 -!- user71 [~user71@2001:1530:1002:9117:c2f9:107d:afb3:2] has joined #openbsd 16:42 -!- feriman_ [~feriman@user/feriman] has quit [Ping timeout: 268 seconds] 16:42 -!- bob_x2 [~bob_x@user/bob-x1/x-8934932] has joined #openbsd 16:42 -!- lavaball [~Melissa@31.204.155.215] has joined #openbsd 16:44 -!- feriman_ [~feriman@user/feriman] has joined #openbsd 16:45 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 16:47 -!- Kruppt [~Kruppt@user/Kruppt] has joined #openbsd 16:47 < basiic> Hello dear community. I am looking for best approach to set up custom windows manager, lets say i3. My concern is that default windows manager is still running in background, if I start i3 by ¨exec i3¨ in ~/.Xsession. Can I run i3 without xenodm? 16:47 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 16:47 -!- jagtalon [~jag@user/jagtalon] has quit [Quit: leaving] 16:48 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has joined #openbsd 16:48 -!- jagtalon [~jag@user/jagtalon] has joined #openbsd 16:48 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 16:48 -!- Guest7282 [~Guest7282@1.195-178-91.adsl-dyn.isp.belgacom.be] has joined #openbsd 16:49 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 16:49 -!- chasmo77 [~chas77@c-98-232-187-196.hsd1.or.comcast.net] has joined #openbsd 16:49 < ivdsangen> if you use .xsession to launch i3 the default wm will not be running in the background normally 16:49 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 16:51 < Lucas6023> basiic: show your ~/.xsession 16:51 -!- rainystorm [~rainystor@user/rainystorm] has joined #openbsd 16:52 < Bradipo> basiic: xenodm still runs, regardless of the contents of .xsession. 16:52 < basiic> Thank you for clarification! As for disabling xenodm, my bad, bc as I read in https://www.openbsd.org/faq/faq11.html xenodm adds security. 16:52 < basiic> my ~/.xsession is just ¨exec i3¨ 16:53 -!- varioust [~varioust@gateway/tor-sasl/varioust] has quit [Ping timeout: 255 seconds] 16:54 -!- varioust [~varioust@gateway/tor-sasl/varioust] has joined #openbsd 16:55 -!- a2800276 [~a2800276@freeshell.de] has joined #openbsd 16:55 < Lucas6023> if that's it, then there is no default window manager running in background 16:56 < basiic> OpenBSD is the best, thanks! 17:02 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 17:04 -!- lbia [~lbia@user/lbia] has quit [Read error: Connection reset by peer] 17:04 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 17:08 -!- varioust [~varioust@gateway/tor-sasl/varioust] has quit [Ping timeout: 255 seconds] 17:08 -!- feriman_ [~feriman@user/feriman] has quit [Quit: leaving] 17:08 -!- varioust [~varioust@gateway/tor-sasl/varioust] has joined #openbsd 17:10 -!- lbia [~lbia@user/lbia] has joined #openbsd 17:16 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 17:17 -!- adip [~adip@c133-141.icpnet.pl] has quit [Ping timeout: 260 seconds] 17:19 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 17:23 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 17:23 -!- a51 [a51@gateway/vpn/protonvpn/a51] has quit [Quit: WeeChat 4.2.1] 17:23 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 17:25 -!- uwharrie [~uwharrie@user/uwharrie] has left #openbsd [] 17:26 -!- ivanbu [~weechat@93.176.174.248] has quit [Ping timeout: 246 seconds] 17:28 -!- ivanbu [~weechat@93.176.174.248] has joined #openbsd 17:29 -!- b50d [~b50d@62.96.54.30] has quit [Remote host closed the connection] 17:32 -!- zimmer [~zimmer@user/zimmer] has quit [Ping timeout: 255 seconds] 17:34 -!- pyu [~pyu@cm222-166-4-68.hkcable.com.hk] has quit [Ping timeout: 260 seconds] 17:36 -!- grobi [~grobi@user/grobi] has quit [Read error: Connection reset by peer] 17:36 -!- germtoo [~quassel@user/mipsel3] has quit [Ping timeout: 255 seconds] 17:49 -!- epony [~epony@user/epony] has joined #openbsd 17:53 -!- GnarledHorn [~GnarledHo@184-088-011-148.res.spectrum.com] has joined #openbsd 17:53 -!- byteskeptical [~amnesia@user/byteskeptical] has quit [Ping timeout: 252 seconds] 17:54 -!- byteskeptical [~amnesia@user/byteskeptical] has joined #openbsd 17:57 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 17:57 -!- teksimian [~textual@198-91-188-50.cpe.distributel.net] has joined #openbsd 17:57 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 17:58 -!- Livestradamus [~quassel@user/livestradamus] has quit [Ping timeout: 268 seconds] 18:02 -!- vysn [~vysn@user/vysn] has quit [Remote host closed the connection] 18:09 -!- Livestradamus [~quassel@user/livestradamus] has joined #openbsd 18:10 -!- ficonni [~ficonni@46.235.98.229] has joined #openbsd 18:13 -!- unwired [~unwired@user/unwired] has quit [Quit: leaving] 18:13 -!- yifei [~azureuser@20.78.38.172] has joined #openbsd 18:13 -!- unwired [~unwired@user/unwired] has joined #openbsd 18:16 -!- jacobk [~quassel@129.110.241.106] has joined #openbsd 18:24 -!- dutch [~DutchIngr@user/dutch] has quit [Quit: WeeChat 4.0.4] 18:31 -!- dutch [~DutchIngr@user/dutch] has joined #openbsd 18:31 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 18:32 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 18:36 -!- EtherNet- [~ethernet@user/ethernet] has joined #openbsd 18:36 -!- EtherNet [~ethernet@user/ethernet] has quit [Ping timeout: 255 seconds] 18:37 -!- yclept [~yclept@user/yclept] has quit [Remote host closed the connection] 18:37 -!- EtherNet- is now known as EtherNet 18:37 -!- yclept [~yclept@user/yclept] has joined #openbsd 18:39 -!- uwharrie [~uwharrie@user/uwharrie] has joined #openbsd 18:41 -!- runelind [~runelind@user/runelind] has joined #openbsd 18:41 -!- runelind_ [~runelind@user/runelind] has quit [Ping timeout: 260 seconds] 18:44 -!- tercaL [~tercaL@user/tercal] has quit [Quit: enter the Tekken!] 18:45 -!- tercaL [~tercaL@user/tercal] has joined #openbsd 18:45 -!- reset [~reset@user/reset] has joined #openbsd 18:45 -!- Netsplit *.net <-> *.split quits: reset, krzych 18:47 -!- Netsplit over, joins: reset, krzych 18:48 -!- adip [~adip@c137-10.icpnet.pl] has joined #openbsd 18:49 -!- shazaum [~Thunderbi@user/shazaum] has joined #openbsd 18:50 -!- shazaum [~Thunderbi@user/shazaum] has quit [Client Quit] 18:57 -!- psydroid [~psydroid@user/psydroid] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 19:00 -!- unwired [~unwired@user/unwired] has quit [Quit: leaving] 19:01 -!- unwired [~unwired@user/unwired] has joined #openbsd 19:01 -!- PapaChub [~PapaChub@vzw-53.parabon.com] has joined #openbsd 19:02 -!- PapaChub_ [~PapaChub@96.255.5.253] has quit [Ping timeout: 268 seconds] 19:02 -!- vados [~vados@46-133-177-94.mobile.vf-ua.net] has quit [Ping timeout: 268 seconds] 19:04 -!- vados [~vados@46-133-147-136.mobile.vf-ua.net] has joined #openbsd 19:05 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 19:06 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 19:06 -!- GnarledHorn [~GnarledHo@184-088-011-148.res.spectrum.com] has quit [Ping timeout: 245 seconds] 19:07 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 260 seconds] 19:07 -!- rainystorm [~rainystor@user/rainystorm] has quit [Quit: WeeChat 4.1.2] 19:08 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 19:15 -!- carbonfiber [uid513797@id-513797.uxbridge.irccloud.com] has joined #openbsd 19:16 -!- dustinm` [~dustinm@static.38.6.217.95.clients.your-server.de] has quit [Quit: Leaving] 19:18 -!- schna_ is now known as schna 19:26 -!- struchu [~struchu@staticline-31-183-134-31.toya.net.pl] has joined #openbsd 19:27 -!- adig [~default@109.166.139.48] has joined #openbsd 19:30 -!- seninha [~seninha@user/seninha] has joined #openbsd 19:31 -!- seninha [~seninha@user/seninha] has quit [Remote host closed the connection] 19:32 -!- seninha [~seninha@user/seninha] has joined #openbsd 19:35 -!- Guest27 [~Guest3@bexl-11-b2-v4wan-163024-cust329.vm4.cable.virginm.net] has joined #openbsd 19:35 -!- Guest27 [~Guest3@bexl-11-b2-v4wan-163024-cust329.vm4.cable.virginm.net] has quit [Client Quit] 19:36 -!- djhankb [~djhankb@208.113.164.68] has quit [Quit: Ping timeout (120 seconds)] 19:36 -!- dustinm` [~dustinm@static.38.6.217.95.clients.your-server.de] has joined #openbsd 19:36 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 19:38 -!- shazaum [~Thunderbi@user/shazaum] has joined #openbsd 19:42 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 19:43 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 19:47 -!- miojo [~slacker@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has joined #openbsd 19:47 -!- zwrr [~zwr@200-97-244-121.user3p.veloxzone.com.br] has quit [Ping timeout: 256 seconds] 19:49 -!- miojo [~slacker@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has quit [Client Quit] 19:49 -!- miojo [~slacker@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has joined #openbsd 19:49 -!- miojo [~slacker@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has quit [Client Quit] 19:51 -!- struchu [~struchu@staticline-31-183-134-31.toya.net.pl] has quit [Quit: WeeChat 4.1.3] 19:52 -!- miojo [~slacker@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has joined #openbsd 19:54 -!- zwr [~zwr@200-97-244-121.user3p.veloxzone.com.br] has joined #openbsd 19:55 -!- shamoe [uid613739@user/shamoe] has quit [Quit: Connection closed for inactivity] 19:58 -!- __gilles [~gilles@95.179.219.163] has quit [Quit: leaving] 20:00 -!- __gilles [~gilles@82.65.169.200] has joined #openbsd 20:00 -!- varioust [~varioust@gateway/tor-sasl/varioust] has quit [Ping timeout: 255 seconds] 20:00 -!- epony [~epony@user/epony] has quit [Remote host closed the connection] 20:01 -!- varioust [~varioust@gateway/tor-sasl/varioust] has joined #openbsd 20:01 -!- fettuccine [~fettuccin@gateway/tor-sasl/fettuccine] has quit [Ping timeout: 255 seconds] 20:02 -!- epony [~epony@user/epony] has joined #openbsd 20:04 -!- ikarso [uid475540@id-475540.tinside.irccloud.com] has quit [Quit: Connection closed for inactivity] 20:04 -!- lus [~lus@195.158.111.16] has joined #openbsd 20:05 -!- epony [~epony@user/epony] has quit [Remote host closed the connection] 20:05 -!- b50d [~b50d@2a01:c23:6c4d:7800:574a:7176:303b:b892] has joined #openbsd 20:06 -!- SexWarrior [~DankFrank@2a01:4b00:940e:f600:a85d:e3eb:50a0:d5ba] has joined #openbsd 20:09 -!- b50d [~b50d@2a01:c23:6c4d:7800:574a:7176:303b:b892] has quit [Remote host closed the connection] 20:11 < Bradipo> What's the best way to set environment variables for non-intereractive commands? 20:12 < Bradipo> ksh will read .profile, but only for interactive shells. 20:13 < Bradipo> Well, I suppose really it's ENV that it reads for interactive shells. 20:13 < thrig> how is the command being run? 20:13 < Bradipo> ssh host command 20:13 < Bradipo> Because command is not a login shell, nor is it an interactive shell, nothing in .profile or .kshrc has eny effect. 20:13 < Bradipo> s/eny/any/ 20:13 < thrig> there was a thread about this recently on one of the lists 20:14 -!- epony [~epony@user/epony] has joined #openbsd 20:14 < Bradipo> https://marc.info/?t=170706497400002&r=1&w=2 20:14 < Bradipo> Yes, that's very similar. 20:15 < Bradipo> I'm currently looking through ksh sources to see if there is perhaps some undocumented, or even obscurely documented, method. 20:15 < Bradipo> Seems odd that ksh proper has no way to initialize the environment except for "login" or "interactive" shells. 20:15 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 20:15 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 20:16 < Bradipo> SetEnv in sshd_config would be ideal, except it doesn't support macros. 20:16 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 20:16 < thrig> ssh blah env blah=blah blah 20:17 < Bradipo> Yep, that's the non-automatic way. 20:17 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 20:17 < Bradipo> ssh blah env PATH=\$HOME/bin:\$PATH blah 20:17 < Bradipo> Not very ideal. 20:18 < Bradipo> Every user would have to do it. 20:18 -!- jacobk [~quassel@129.110.241.106] has quit [Ping timeout: 268 seconds] 20:18 < thrig> or just put the necessary env settings into blah, or use the fully qualified path to ~/bin/blah 20:18 < Bradipo> Oddly enough, I'm curious what sets the PATH for non-interactive SSH sessions. 20:18 < Bradipo> I notice that when I run: ssh host env 20:18 < Bradipo> The PATH is some value, but not any value I've set anywhere. 20:19 < Bradipo> This is the path: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin 20:19 -!- shazaum [~Thunderbi@user/shazaum] has quit [Quit: shazaum] 20:20 < Bradipo> Is that coming from /.profile ? 20:20 -!- ikarso [uid475540@id-475540.tinside.irccloud.com] has joined #openbsd 20:20 < Lucas6023> most probably it comes from /etc/login.conf 20:21 < Bradipo> Ahh, right. 20:21 < Bradipo> Yes, it's the :path= 20:21 < Bradipo> So that's the answer right there... 20:21 < Bradipo> Well, no... 20:21 < Bradipo> Not if login.conf doesn't support some kind of macro/variable substitution for a given user. 20:22 < Bradipo> e.g. if every user has a ~/bin directory, I'm not sure that can be represented in login.conf... time to read the man page. 20:22 < thrig> grep STD /usr/include/paths.h 20:23 < Bradipo> Hmm, so there is also that... 20:23 < Bradipo> I suppose I would have to alter login.conf to see if the path changes or not. 20:23 < Bradipo> If it changes, then login.conf wins. If it doesn't change, it's this _PATH_STDPATH. 20:23 -!- jlavsund [~jlavsund@37.250.119.83.bredband.tre.se] has quit [Remote host closed the connection] 20:23 < Bradipo> Haha, login.conf mentions _PATH_STDPATH. 20:24 < Bradipo> Ok, yes, login.conf does support ~, so it can be expanded to a dynamic user's environment. 20:28 -!- jacobk [~quassel@129.110.242.224] has joined #openbsd 20:29 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 20:32 -!- ficonni [~ficonni@46.235.98.229] has quit [Remote host closed the connection] 20:33 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 20:35 < Bradipo> Does MacOS have an equivalent to login.conf? 20:42 < sibiria> not really 20:43 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 20:44 < thrig> I recall there being a wacky XML plist file you could put static env into way back when 20:45 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 20:46 < Bradipo> Yeah, it seems the wacky XML plist doesn't work anymore. 20:46 < Bradipo> At least not for SSH sessions. It might work for login sessions on the console. 20:47 < Bradipo> https://apple.stackexchange.com/questions/29861/how-do-i-change-my-non-interactive-shell-path 20:47 < Bradipo> That's the wacky XML thing... 20:47 < Bradipo> But it's from 2011... Apple doesn't believe in stable interfaces, so I doubt it's still even relevant. 20:48 < basiic> I am reading manual about sysctl.conf file, but there is none after fresh installation in /etc/. Is there example file to be copied to /etc/? 20:48 < Bradipo> It's in /etc/examples with all the rest. 20:48 < basiic> Thank you, Bradipo. 20:49 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 20:50 -!- vados [~vados@46-133-147-136.mobile.vf-ua.net] has quit [Quit: WeeChat 4.0.4] 20:50 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 20:51 < MonsoonSecrecy> is this still the way to go for an email server? https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/ 20:52 < uwharrie> it's *a* way to go, but not necessarily *the* way 20:52 < MonsoonSecrecy> OK thank you 20:52 < thrig> you could also firewall port 25 20:57 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 246 seconds] 20:59 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 21:00 -!- tux0r- is now known as tux0r 21:02 < __gilles> at some point I'll update the article 21:03 < sibiria> are you still doing most of the work on opensmtpd? 21:04 -!- absc [absc@2a04:ee41:8:6055:58c2:c98c:651d:d4d6] has joined #openbsd 21:09 -!- varioust [~varioust@gateway/tor-sasl/varioust] has quit [Ping timeout: 255 seconds] 21:11 < MonsoonSecrecy> __gilles: thank you, would you do something different? 21:12 -!- enwu [~enwu@user/enwu] has quit [Quit: Leaving] 21:12 -!- lus [~lus@195.158.111.16] has quit [Quit: Leaving] 21:13 < __gilles> sibiria: nope, i took a four years break and haven't followed much, slowly catching up 21:14 < __gilles> MonsoonSecrecy: it depends on the setup, for a personnal server i'd probably just follow the steps 21:15 < __gilles> but i do use virtual domains a lot so i'd customize 21:15 -!- varioust [~varioust@gateway/tor-sasl/varioust] has joined #openbsd 21:15 < __gilles> gnite 21:16 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 21:20 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 21:21 -!- a51 [a51@gateway/vpn/protonvpn/a51] has joined #openbsd 21:22 -!- varioust [~varioust@gateway/tor-sasl/varioust] has quit [Ping timeout: 255 seconds] 21:22 -!- jlavsund [~jlavsund@37.250.119.83.bredband.tre.se] has joined #openbsd 21:25 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 21:26 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 21:29 -!- gbowne1 [~gbowne1@97-113-75-249.tukw.qwest.net] has joined #openbsd 21:31 -!- varighet_ [~varighet@94-224-80-37.access.telenet.be] has joined #openbsd 21:32 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 272 seconds] 21:33 -!- varighet [~varighet@94-224-80-37.access.telenet.be] has quit [Ping timeout: 264 seconds] 21:34 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 21:34 -!- jagtalon [~jag@user/jagtalon] has quit [Quit: leaving] 21:35 -!- uncleyear [~ian@178.66.158.62] has quit [Ping timeout: 256 seconds] 21:37 -!- shamoe [uid613739@user/shamoe] has joined #openbsd 21:45 -!- polarian [~polarian@znc.polarian.dev] has quit [Read error: Connection reset by peer] 21:45 -!- polarian [~polarian@znc.polarian.dev] has joined #openbsd 21:45 -!- adig [~default@109.166.139.48] has quit [Read error: Connection reset by peer] 21:45 -!- sonya [~nologin@gateway/tor-sasl/sonya] has quit [Ping timeout: 255 seconds] 21:46 -!- uncleyear [~ian@178.66.130.90] has joined #openbsd 21:49 < MonsoonSecrecy> __gilles: thank you for the article it is very nice 21:49 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 246 seconds] 21:50 -!- jacobk [~quassel@129.110.242.224] has quit [Ping timeout: 240 seconds] 21:54 -!- uncleyear [~ian@178.66.130.90] has quit [Ping timeout: 255 seconds] 21:54 -!- ivdsangen [~ivo@86-95-161-96.fixed.kpn.net] has quit [Quit: https://github.com/ivdsangen] 21:54 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 21:55 -!- seninha [~seninha@user/seninha] has quit [Ping timeout: 240 seconds] 21:55 -!- germ [~quassel@50.53.213.83] has joined #openbsd 21:59 -!- absc [absc@2a04:ee41:8:6055:58c2:c98c:651d:d4d6] has quit [Quit: Got to go. irctk 1.0.0] 21:59 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 21:59 -!- teksimian [~textual@198-91-188-50.cpe.distributel.net] has quit [Quit: teksimian] 21:59 -!- absc [absc@2a04:ee41:8:6055:58c2:c98c:651d:d4d6] has joined #openbsd 22:00 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 22:02 -!- justache [~justache@user/justache] has quit [Read error: Connection reset by peer] 22:02 -!- user71 [~user71@2001:1530:1002:9117:c2f9:107d:afb3:2] has quit [Quit: Leaving] 22:03 -!- yclept [~yclept@user/yclept] has quit [Quit: nyaa~] 22:05 -!- justache [~justache@user/justache] has joined #openbsd 22:07 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 22:09 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 22:11 -!- jacobk [~quassel@utdpat241106.utdallas.edu] has joined #openbsd 22:13 -!- byteskeptical [~amnesia@user/byteskeptical] has quit [Quit: Lost terminal] 22:14 -!- breavyn [~breavyn@user/breavyn] has quit [Quit: ZNC 1.8.2 - https://znc.in] 22:15 -!- breavyn [~breavyn@user/breavyn] has joined #openbsd 22:17 -!- absc [absc@2a04:ee41:8:6055:58c2:c98c:651d:d4d6] has quit [Quit: Got to go. irctk 1.0.0] 22:22 -!- ssm__ is now known as ssm_ 22:24 -!- thowe [~thowe@track.network911.com] has joined #openbsd 22:24 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 268 seconds] 22:27 -!- nedko [~nedko@gateway/tor-sasl/nedko] has quit [Ping timeout: 255 seconds] 22:28 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 22:29 -!- nedko [~nedko@gateway/tor-sasl/nedko] has joined #openbsd 22:33 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 22:34 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 22:35 -!- adip [~adip@c137-10.icpnet.pl] has quit [Ping timeout: 256 seconds] 22:36 -!- lavaball [~Melissa@31.204.155.215] has quit [Remote host closed the connection] 22:39 -!- miojo [~slacker@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has quit [Quit: Leaving] 22:42 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 255 seconds] 22:42 -!- runelind_ [~runelind@user/runelind] has joined #openbsd 22:42 -!- runelind [~runelind@user/runelind] has quit [Ping timeout: 276 seconds] 22:47 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 22:47 -!- runelind_ [~runelind@user/runelind] has quit [Ping timeout: 260 seconds] 22:51 -!- gman999 [~GMan999@user/gman999] has quit [Quit: WeeChat 4.0.4] 22:51 -!- germ [~quassel@50.53.213.83] has quit [Changing host] 22:51 -!- germ [~quassel@user/mipsel3] has joined #openbsd 22:51 -!- jacobk [~quassel@utdpat241106.utdallas.edu] has quit [Ping timeout: 260 seconds] 22:52 -!- jacobk [~quassel@utdpat241106.utdallas.edu] has joined #openbsd 22:52 -!- seninha [~seninha@user/seninha] has joined #openbsd 22:53 -!- runelind [~runelind@user/runelind] has joined #openbsd 22:55 -!- adig [~default@109.166.139.48] has joined #openbsd 22:55 -!- tercaL [~tercaL@user/tercal] has quit [Ping timeout: 256 seconds] 23:00 -!- scain [~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com] has quit [Quit: Konversation terminated!] 23:02 -!- gh34 [~textual@184-058-181-106.res.spectrum.com] has quit [Quit: Textual IRC Client: www.textualapp.com] 23:04 -!- vados [~vados@46-133-147-136.mobile.vf-ua.net] has joined #openbsd 23:07 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 23:08 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 23:08 -!- feriman [~feriman@user/feriman] has quit [Ping timeout: 264 seconds] 23:11 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 256 seconds] 23:14 -!- ikarso [uid475540@id-475540.tinside.irccloud.com] has quit [Quit: Connection closed for inactivity] 23:17 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 23:19 -!- miojo [~miojo@2804:29b8:5137:18f4:68b7:32ae:c12a:fc0e] has joined #openbsd 23:22 -!- runelind [~runelind@user/runelind] has quit [Read error: Connection reset by peer] 23:24 -!- carbonfiber [uid513797@id-513797.uxbridge.irccloud.com] has quit [Quit: Connection closed for inactivity] 23:25 -!- runelind [~runelind@user/runelind] has joined #openbsd 23:25 -!- n6bsd [~n6bsd@user/n6bsd] has joined #openbsd 23:29 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 23:34 -!- e1e0 [~e1e0@user/e1e0] has quit [Ping timeout: 256 seconds] 23:35 -!- e1e0 [~e1e0@user/e1e0] has joined #openbsd 23:35 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 23:36 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 264 seconds] 23:39 -!- runelind [~runelind@user/runelind] has quit [Quit: ZNC 1.8.2 - https://znc.in] 23:40 -!- runelind [~runelind@user/runelind] has joined #openbsd 23:40 -!- SexWarrior [~DankFrank@2a01:4b00:940e:f600:a85d:e3eb:50a0:d5ba] has quit [Quit: Leaving] 23:40 -!- a51 [a51@gateway/vpn/protonvpn/a51] has quit [Quit: WeeChat 4.2.1] 23:41 -!- basiic [~basiic@80.89.74.54] has quit [Read error: Connection reset by peer] 23:41 -!- djhankb [~djhankb@208.113.164.68] has quit [Remote host closed the connection] 23:42 -!- DINOWILLIAM [~DINOWILLI@177.92.53.3] has quit [Read error: Connection reset by peer] 23:42 -!- fossdd [~fossdd@sourcehut/user/fossdd] has joined #openbsd 23:42 -!- djhankb [~djhankb@208.113.164.68] has joined #openbsd 23:49 -!- DINOWILLIAM [~DINOWILLI@177.92.53.3] has joined #openbsd 23:52 -!- learnoptimism [~anon@173.162.170.121] has joined #openbsd 23:57 -!- fossdd [~fossdd@sourcehut/user/fossdd] has quit [Ping timeout: 268 seconds] --- Log closed Tue Feb 06 00:00:14 2024