💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-01-28.txt captured on 2024-05-12 at 16:09:18.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-01-28T00:54:49 #kisslinux <konimex> at this point I think Intel should have a daily x86 exploit reveal 2020-01-28T01:02:25 #kisslinux <konimex> E5ten: let that man go, man. dude's a full-on nutcase 2020-01-28T01:06:15 #kisslinux <E5ten> I can'tttt 2020-01-28T01:06:31 #kisslinux <E5ten> he's so fucking off the wall and he just jumps from irrelevant argument to irrelevant argument 2020-01-28T01:08:25 #kisslinux <E5ten> ugh fuck it I'm done 2020-01-28T01:08:36 #kisslinux <E5ten> he's just a raving lunatic 2020-01-28T07:10:46 #kisslinux <dylanaraps> https://www.phoronix.com/scan.php?page=news_item&px=AppStream-1.0-Coming 2020-01-28T07:10:57 #kisslinux <dylanaraps> > XML based 2020-01-28T07:11:01 #kisslinux <dylanaraps> Hm, I wonder 2020-01-28T07:11:40 #kisslinux <dylanaraps> https://www.freedesktop.org/software/appstream/docs/ 2020-01-28T07:11:44 #kisslinux <dylanaraps> Ah, yes 2020-01-28T08:12:52 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/commit/60ac1c094e68214f93d756446ff67ee6109ff793 2020-01-28T08:16:48 #kisslinux <dylanaraps> kiss will now store build logs of failed builds 2020-01-28T08:16:48 #kisslinux <dylanaraps> Can store build logs of all builds by setting `KISS_DEBUG=1`. 2020-01-28T08:22:21 #kisslinux <dylanaraps> KISS_DEBUG=1 kiss b zlib >/dev/null 2020-01-28T08:23:37 #kisslinux <Guest83> (y) 2020-01-28T08:24:23 #kisslinux <dylanaraps> This command will now hide all build output but log it to a file under ~/.cache/kiss/logs 2020-01-28T08:24:23 #kisslinux <dylanaraps> Package manager output will still be shown to the terminal(!) 2020-01-28T08:27:32 #kisslinux <dzove855> huu, nice 2020-01-28T08:28:04 #kisslinux <Guest83> your doppelganger has logged in Dylan 2020-01-28T08:28:15 #kisslinux <Guest83> thats a it awkward 2020-01-28T08:28:29 #kisslinux <Guest83> bit awkward 2020-01-28T08:28:36 #kisslinux <dylanaraps2> My power went out 2020-01-28T08:28:46 #kisslinux <dylanaraps2> irc didn't disconnect properly 2020-01-28T08:29:24 #kisslinux <Guest83> sorry not you dzove855 2020-01-28T08:30:15 #kisslinux <dzove855> Guest83: haha i know 2020-01-28T08:31:58 #kisslinux <dzove855> holy crap the meteo here is disgusting today, it took me 1h to 10km with a car... the guys just don't know how to drive.. my journey started well :( 2020-01-28T08:34:04 #kisslinux <Guest83> weather? 2020-01-28T08:34:51 #kisslinux <dzove855> yeah, it's a mix of snow, rain and hail grains 2020-01-28T08:36:41 #kisslinux <Guest83> @dzobe855 where are you if you don't mind my asking? 2020-01-28T08:37:12 #kisslinux <dzove855> i'm from luxembourg 2020-01-28T08:37:47 #kisslinux <Guest83> ah, you're not mrneilypops are you? 2020-01-28T08:38:40 #kisslinux <dzove855> no i'm not :) 2020-01-28T08:38:54 #kisslinux <Guest83> he does a debian/dwm distrolette thing 2020-01-28T08:39:22 #kisslinux <Guest83> he is from luxembourg also i believe 2020-01-28T08:40:38 #kisslinux <dzove855> yeahh i just saw it. Didn't know this guy, actually there're not a lot of luxembourg poeple who try to contributate in the open source community actually 2020-01-28T08:40:58 #kisslinux <dzove855> i know a few one, but it(s a really small country, so it's difficult to find someone 2020-01-28T08:41:45 #kisslinux <Guest83> yes, same here 2020-01-28T08:41:53 #kisslinux <dzove855> where're you from? 2020-01-28T08:42:09 #kisslinux <Guest83> i'm in new zealand 2020-01-28T08:42:14 #kisslinux <Guest83> auckland 2020-01-28T08:42:55 #kisslinux <dzove855> hello from the other side :D 2020-01-28T08:43:08 #kisslinux <Guest83> you have sound in firefox now? 2020-01-28T08:43:40 #kisslinux <dzove855> yeah, just got it working yesterday, i had written a bad configuration in asound 2020-01-28T08:43:46 #kisslinux <Guest83> oh yes indeed, from the other side XD 2020-01-28T08:43:55 #kisslinux <Guest83> almost 10pm here 2020-01-28T08:43:59 #kisslinux <dzove855> actually it was a good configuration but for the wrong card :D 2020-01-28T08:44:17 #kisslinux <dzove855> here it is almos 10am haha 2020-01-28T08:44:25 #kisslinux <Guest83> ah yes that'll do it 2020-01-28T08:48:44 #kisslinux <dzove855> yeah, it was great now. 2020-01-28T08:49:11 #kisslinux <dzove855> s/was/works/ 2020-01-28T10:11:14 #kisslinux <dylanaraps> o/ 2020-01-28T10:28:08 #kisslinux <dylanaraps> adamantium: Did you see the log feature I added? :P 2020-01-28T10:28:27 #kisslinux <adamantium> hey dylanaraps not yet, about to check 2020-01-28T10:28:41 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/commit/60ac1c094e68214f93d756446ff67ee6109ff793 2020-01-28T10:29:50 #kisslinux <dylanaraps> > KISS_DEBUG=1 kiss b zlib >/dev/null 2020-01-28T10:29:57 #kisslinux <dylanaraps> This is my favourite part of it 2020-01-28T10:30:04 #kisslinux <dylanaraps> Can hide all build output but log it to a file 2020-01-28T10:34:22 #kisslinux <adamantium> looking now 2020-01-28T10:37:20 #kisslinux <adamantium> amazing stuff 2020-01-28T10:37:26 #kisslinux <adamantium> You make it look easy 2020-01-28T10:39:28 #kisslinux <dylanaraps> heh 2020-01-28T10:39:31 #kisslinux <dylanaraps> Thanks 2020-01-28T10:39:36 #kisslinux <dylanaraps> (Power went out again) 2020-01-28T10:39:41 #kisslinux <adamantium> I have been working on my own thing here. PAM is totally crap but i like using ext4 encrypt for directories in my $HOME now, with fscrypt (havent packaged it for kiss, yet)-- but i've been setting up for it. Currently I autologin on the getty to bash, then run this bash_profile ... 2020-01-28T10:40:31 #kisslinux <adamantium> so for a sensitive directory like a web browser that remains logged in to websites, i'll stick it in $HOME/LOCKER and symlink to it 2020-01-28T10:40:56 #kisslinux <adamantium> working on https://github.com/a-schaefers/dot-emacs/blob/master/.bash_profile and https://github.com/a-schaefers/dot-emacs/blob/master/.bash_logout 2020-01-28T10:42:25 #kisslinux <adamantium> Currently i autologin on the getty, it spawns gpg agent, asks my gpg password, decrypts and reads my ~/.authinfo.gpg file which contains misc. passwords for all kinds of stuff, then parses it with awk and pipes the passwords into other agents like ssh-agent and decrypts my $HOME/locker folder, emacs also uses this file so it then (if internet is available) will auto log me in to freenode and my email 2020-01-28T10:43:09 #kisslinux <adamantium> pretty nuts password automation. I just got SICK of entering my password 100 times a day 2020-01-28T11:19:31 #kisslinux <dylanaraps> Nice 2020-01-28T11:36:14 #kisslinux <dylanaraps> > -> zlib Found conflict (/usr/bin/ls), adding choice 2020-01-28T11:36:21 #kisslinux <dylanaraps> Looky looky what I'm working on 2020-01-28T11:36:30 #kisslinux <dylanaraps> Ignore me adding ls to zlib as an example :^) 2020-01-28T12:13:25 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/pull/94/files 2020-01-28T12:13:28 #kisslinux <dylanaraps> "kiss: initial alternatives system #94 2020-01-28T12:13:29 #kisslinux <dylanaraps> " 2020-01-28T12:13:35 #kisslinux <dylanaraps> Should be done soonish 2020-01-28T12:13:44 #kisslinux <dylanaraps> There's a TODO in there 2020-01-28T12:24:06 #kisslinux <dylanaraps> https://termbin.com/290c 2020-01-28T12:34:59 #kisslinux <ilyaigpetrov> What philosophically different between Guix and KissLinux, why one should prefer KissLinux over Guix? 2020-01-28T12:36:41 #kisslinux <dylanaraps> That's up to you to decide. 2020-01-28T12:38:14 #kisslinux <dylanaraps> o/ 2020-01-28T12:38:25 #kisslinux <merakor> Hya 2020-01-28T12:38:28 #kisslinux <ilyaigpetrov> o/ 2020-01-28T12:38:35 #kisslinux <ilyaigpetrov> dylanaraps: why don't you base kisslinux on Guix (or at least use their Shepherd service manager)? 2020-01-28T12:39:04 #kisslinux <merakor> My web server is on carbs now 2020-01-28T12:39:21 #kisslinux <dylanaraps> Here's a better question, why should I? 2020-01-28T12:40:40 #kisslinux <ilyaigpetrov> Because you don't want to reinvent the wheel and you want to embrace all the sweet features from Guix. 2020-01-28T12:40:51 #kisslinux <merakor> Uses only 50 mbs of ram altogether with http serving, tls tunneling, and the git server daemon 2020-01-28T12:41:40 #kisslinux <dylanaraps> merakor: Nice 2020-01-28T12:42:23 #kisslinux <dylanaraps> KISS is a lot simpler than GUIX 2020-01-28T12:43:04 #kisslinux <dylanaraps> KISS also uses less software than GUIX 2020-01-28T12:43:26 #kisslinux <pltrz> dylanaraps: have you tried sabotage linux? 2020-01-28T12:43:38 #kisslinux <pltrz> and if so what did you think? 2020-01-28T12:45:35 #kisslinux <dylanaraps> I like a lot of the choices made with Sabotage 2020-01-28T12:45:42 #kisslinux <dylanaraps> There's a lot I don't like too 2020-01-28T12:48:31 #kisslinux <dylanaraps> About GUIX; The plans and vision I have for KISS can't be done by basing on top of another distribution. 2020-01-28T12:49:00 #kisslinux <merakor> dylanaraps: I see you still get new testimonial-worthy messages everyday. 2020-01-28T12:49:53 #kisslinux <dylanaraps> I quite like my wheel better. :) 2020-01-28T12:50:46 #kisslinux <dylanaraps> Why doesn't GUIX base on KISS and embrace all of its sweet features? 2020-01-28T12:50:50 #kisslinux <merakor> The simple answer to "why didn't you base x on y" is "why didn't y base on z?" 2020-01-28T12:51:10 #kisslinux <dylanaraps> Heh 2020-01-28T12:51:57 #kisslinux <dylanaraps> GUIX uses GLibc regardless no? 2020-01-28T12:52:05 #kisslinux <merakor> Yeah and gnu coreutils 2020-01-28T12:52:14 #kisslinux <pltrz> gross 2020-01-28T12:53:28 #kisslinux <dylanaraps> You also won't find a Code of Conduct in any KISS projects 2020-01-28T12:53:38 #kisslinux <dylanaraps> Or any moderation of any kind. 2020-01-28T12:53:44 #kisslinux <merakor> Besides I am pretty sure ludovic has received a similar message "why didn't you base guix on this other distro, I am so angry why do you reinvent the wheel grrr" 2020-01-28T12:53:45 #kisslinux <dylanaraps> Notice how this channel has no OPs? 2020-01-28T12:53:54 #kisslinux <dylanaraps> They aren't needed. 2020-01-28T12:54:08 #kisslinux <dylanaraps> :) 2020-01-28T12:54:52 #kisslinux <dylanaraps> merakor: https://github.com/kisslinux/kiss/pull/94 2020-01-28T12:57:01 #kisslinux <merakor> Looks nice, 2020-01-28T12:57:43 #kisslinux <merakor> So I have both linux-headers and linux-headers-lts 2020-01-28T12:57:47 #kisslinux <dylanaraps> Yeah, almost done with the bulk of it 2020-01-28T12:58:21 #kisslinux <merakor> Can this be used to satisfy the requirement of a package 2020-01-28T12:58:36 #kisslinux <merakor> Say a package says linux headers 2020-01-28T12:58:39 #kisslinux <merakor> And I have lts 2020-01-28T12:58:45 #kisslinux <dylanaraps> No 2020-01-28T12:59:22 #kisslinux <dylanaraps> Say you have two packages which both provide 'ls', this will automatically setup the ability to swap between which 'ls' you want to use 2020-01-28T12:59:34 #kisslinux <dylanaraps> No changes to packages needed 2020-01-28T12:59:38 #kisslinux <dylanaraps> All dynamic 2020-01-28T12:59:44 #kisslinux <merakor> I see 2020-01-28T12:59:47 #kisslinux <ilyaigpetrov> I'm new here. What's wrong with GLibc and gnu coreutils? 2020-01-28T13:00:12 #kisslinux <dylanaraps> 'kiss a coreutils /usr/bin/ls' will swap to using 'ls' from coreutils instead of busybox 2020-01-28T13:00:15 #kisslinux <merakor> So, like the way void xbps works, right? 2020-01-28T13:00:23 #kisslinux <dylanaraps> Swapping back is the same 2020-01-28T13:00:29 #kisslinux <dylanaraps> 'kiss a' lists all alternatives 2020-01-28T13:01:10 #kisslinux <merakor> GNU tools in general are really big and have too many features 2020-01-28T13:01:17 #kisslinux <dylanaraps> ilyaigpetrov: They're large and complex 2020-01-28T13:01:27 #kisslinux <ilyaigpetrov> thanks 2020-01-28T13:01:27 #kisslinux <adamantium> hey dylanaraps I have an idea 2020-01-28T13:01:33 #kisslinux <dylanaraps> Yeah 2020-01-28T13:01:36 #kisslinux <adamantium> Let's rebase on guix 2020-01-28T13:02:21 #kisslinux <dylanaraps> OK 2020-01-28T13:02:36 #kisslinux <dzove855> yeah cool :D 2020-01-28T13:02:55 #kisslinux <dylanaraps> merakor: void xbps requires packages to specify what they provide no? 2020-01-28T13:03:19 #kisslinux <dylanaraps> > Alternatives are classified by groups, and a group contains a number of symbolic links which are applied when the group is set. 2020-01-28T13:03:24 #kisslinux <dylanaraps> (Void) 2020-01-28T13:03:49 #kisslinux <merakor> Yeah, I wasn't meaning how they handled it. I meant the concept. 2020-01-28T13:03:52 #kisslinux <dylanaraps> Mine is simply: Detect conflict during install -> create alternative -> install package 2020-01-28T13:04:15 #kisslinux <merakor> That is a much simpler way 2020-01-28T13:04:33 #kisslinux <merakor> It will help me a lot switching to sbase 2020-01-28T13:04:36 #kisslinux <dylanaraps> It's a part of the package as well so it is removed when the package is removed automatically 2020-01-28T13:04:39 #kisslinux <dylanaraps> That's the idea 2020-01-28T13:04:52 #kisslinux <merakor> Since I don't want to remove busybox utilities 2020-01-28T13:05:04 #kisslinux <dylanaraps> The output of `kiss a` (listing alts) can be fed directly back to kiss 2020-01-28T13:05:12 #kisslinux <dylanaraps> (When swapping alts) 2020-01-28T13:05:39 #kisslinux <dylanaraps> So you could do: `kiss a | grep ^sbase | while read -r line; do kiss a "$line"; done` 2020-01-28T13:05:45 #kisslinux <dylanaraps> Tada 2020-01-28T13:06:12 #kisslinux <merakor> That's an awesome change 2020-01-28T13:06:56 #kisslinux <dylanaraps> It's simply an "interface" around moving two files and upating the manifests 2020-01-28T13:07:01 #kisslinux <dylanaraps> updating* 2020-01-28T13:10:47 #kisslinux <dylanaraps> ilyaigpetrov: The number one reason for not basing on anything else (minus incompatible software choices) is that KISS is meant to be entirely maintainable by a single person. 2020-01-28T13:11:21 #kisslinux <dylanaraps> Every user has the full repositories on their machine and is able to take over if they wish. 2020-01-28T13:11:49 #kisslinux <dylanaraps> There's no infrastructure to fail, lose, etc 2020-01-28T13:12:09 #kisslinux <dylanaraps> There's no need for me at all 2020-01-28T13:12:31 #kisslinux <dylanaraps> Any user is capable of maintaining the distribution (on their machine or even for others) 2020-01-28T13:12:36 #kisslinux <adamantium> i mean, the community repo would be a tad sloppier without you, but yeah 2020-01-28T13:12:43 #kisslinux <dylanaraps> Heh 2020-01-28T13:13:27 #kisslinux <dylanaraps> Worst case (were something to happen to me, knock on wood) all it would take is a git remote change to a new location were someone to want to take over 2020-01-28T13:13:47 #kisslinux <dylanaraps> Else, a user could just do it themselves with minimal effort 2020-01-28T13:14:34 #kisslinux <dylanaraps> adamantium: It's on my todo to write a package linter which would pick up on most of my nitpicks 2020-01-28T13:14:47 #kisslinux <dylanaraps> I have a partially working one already 2020-01-28T13:14:57 #kisslinux <dylanaraps> :P 2020-01-28T13:15:03 #kisslinux <adamantium> oh my gawsh 2020-01-28T13:15:07 #kisslinux <adamantium> just quit 2020-01-28T13:15:23 #kisslinux <adamantium> im going to have nightmares about your nitpicker package 2020-01-28T13:15:26 #kisslinux <lieuxnoir> oh my 2020-01-28T13:15:45 #kisslinux <lieuxnoir> sometimes i hate muscle memory 2020-01-28T13:15:46 #kisslinux <lieuxnoir> brb 2020-01-28T13:15:50 #kisslinux <dylanaraps> lol 2020-01-28T13:15:54 #kisslinux <dylanaraps> Old nick 2020-01-28T13:23:26 #kisslinux <merakor> The nouveau module is literally bigger than the rest of my kernel combined 2020-01-28T13:23:49 #kisslinux <dylanaraps> lol 2020-01-28T13:23:54 #kisslinux <dylanaraps> > -> Swapping '/usr/bin/ls' from 'busybox' to 'zlib' 2020-01-28T13:24:26 #kisslinux <icyphox> to zlib? 2020-01-28T13:24:34 #kisslinux <icyphox> or is that just a test 2020-01-28T13:24:39 #kisslinux <dylanaraps> Test 2020-01-28T13:24:42 #kisslinux <icyphox> ah 2020-01-28T13:24:49 #kisslinux <dylanaraps> zlib is my test package as it builds in zero time 2020-01-28T13:24:53 #kisslinux <dylanaraps> Always :P 2020-01-28T13:25:30 #kisslinux <merakor> My desktop at home requires nouveau so I built my kernel with nouveau as a module. My previous total kernel size: 10.3M, Current size: 20.8M 2020-01-28T13:26:26 #kisslinux <dylanaraps> oof 2020-01-28T13:26:53 #kisslinux <merakor> I was planning on building a shared kernel for all of my systems, now I decided not to. 2020-01-28T13:28:53 #kisslinux <merakor> Only my laptop has high build speeds so I am building and exporting packages from this laptop to others. 2020-01-28T13:29:19 #kisslinux <merakor> My desktop can't build webkit 2020-01-28T13:29:23 #kisslinux <Aarg[m]> Might as well yank out the gpu and use your igpu 2020-01-28T13:29:33 #kisslinux <merakor> It terminates because it can't handle the ram requirement 2020-01-28T13:30:38 #kisslinux <merakor> Oh yeah, I could use my igpu instead of novideo 2020-01-28T13:31:20 #kisslinux <merakor> I don't do anything gpu intensive anyways. 2020-01-28T13:32:59 #kisslinux <Aarg[m]> Same here 2020-01-28T13:33:26 #kisslinux <Aarg[m]> Also means less heat, noise and power consumption 2020-01-28T13:34:36 #kisslinux <Aarg[m]> I guess noise is no big deal with more recent cards where the fans simply don't run at all below a certain temp 2020-01-28T13:35:05 #kisslinux <merakor> Yeah my laptop is dead silent 2020-01-28T13:35:34 #kisslinux <merakor> But you can literally hear my desktop computer outside of the house 2020-01-28T13:36:00 #kisslinux <Aarg[m]> lol 2020-01-28T13:36:39 #kisslinux <Aarg[m]> I was planning to build a fanless desktop but that stuff is expensive 2020-01-28T13:37:15 #kisslinux <merakor> I have a Pi that I usually use for desktop 2020-01-28T13:38:18 #kisslinux <merakor> It amazes me how it can be faster than my actual desktop yet much more efficient in terms of electricity 2020-01-28T13:38:56 #kisslinux <adamantium> what's a good pi to get if i wanted to build a lightweight desktop for somebody. with wifi 2020-01-28T13:39:49 #kisslinux <Aarg[m]> The latest? 2020-01-28T13:40:11 #kisslinux <adamantium> oh is that all there is to it 2020-01-28T13:40:12 #kisslinux <adamantium> ok 2020-01-28T13:40:32 #kisslinux <Aarg[m]> I tried using a pi as desktop but I failed to compile mpv/ffmpeg with raspberry pi suppport 2020-01-28T13:41:01 #kisslinux <dylanaraps> https://termbin.com/6gxw 2020-01-28T13:41:03 #kisslinux <dylanaraps> TADA 2020-01-28T13:41:10 #kisslinux <merakor> I have a pi4 with 4G ram 2020-01-28T13:41:53 #kisslinux <merakor> Although now I think that even 4GB of ram for pi is too plenty 2020-01-28T13:42:33 #kisslinux <Aarg[m]> Even with a modern webbroser? 2020-01-28T13:42:40 #kisslinux <Aarg[m]> Browser* 2020-01-28T13:42:55 #kisslinux <merakor> Compiling is always the problem since most binary distributions don't do them natively 2020-01-28T13:43:06 #kisslinux <merakor> I mean I never tried firefox 2020-01-28T13:43:09 #kisslinux <Aarg[m]> Right 2020-01-28T13:43:11 #kisslinux <merakor> I always use surf 2020-01-28T13:43:14 #kisslinux <merakor> Which is webkit 2020-01-28T13:43:33 #kisslinux <merakor> But the experience was just as the same with my laptop 2020-01-28T13:43:54 #kisslinux <Aarg[m]> Nicu, dylanaraps 2020-01-28T13:44:22 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/pull/94/files 2020-01-28T13:44:24 #kisslinux <dylanaraps> Code so far 2020-01-28T13:44:58 #kisslinux <merakor> That's pretty good 2020-01-28T13:45:01 #kisslinux <dylanaraps> Let me modify sbase and try it 2020-01-28T13:45:20 #kisslinux <Aarg[m]> My pi is just a server running btpd and my irc client 2020-01-28T13:45:44 #kisslinux <merakor> I have way too many pis 2020-01-28T13:46:15 #kisslinux <dylanaraps> merakor: How do I "expand" sbase-box? 2020-01-28T13:46:21 #kisslinux <merakor> sudo make install 2020-01-28T13:46:29 #kisslinux <merakor> make install* 2020-01-28T13:46:31 #kisslinux <dylanaraps> Duh 2020-01-28T13:46:33 #kisslinux <dylanaraps> Thanks 2020-01-28T13:46:37 #kisslinux <merakor> Sure thingg 2020-01-28T13:46:39 #kisslinux <merakor> Oh sorry 2020-01-28T13:46:47 #kisslinux <merakor> make install-sbase-box 2020-01-28T13:46:53 #kisslinux <merakor> or make sbase-box-install 2020-01-28T13:47:52 #kisslinux <dylanaraps> Thanks 2020-01-28T13:48:21 #kisslinux <dylanaraps> That's a lot of utils 2020-01-28T13:48:29 #kisslinux <merakor> Sorry for giving three seperate answers :D 2020-01-28T13:48:46 #kisslinux <dylanaraps> All good 2020-01-28T13:49:02 #kisslinux <dylanaraps> https://termbin.com/zsdq 2020-01-28T13:49:06 #kisslinux <merakor> You can still do sbase-box --list, though 2020-01-28T13:49:08 #kisslinux <dylanaraps> Detection works 2020-01-28T13:49:14 #kisslinux <dylanaraps> > sed: unmatched '|' 2020-01-28T13:49:20 #kisslinux <dylanaraps> That's an oops in the middle though 2020-01-28T13:49:57 #kisslinux <dylanaraps> https://termbin.com/33j8 2020-01-28T13:49:58 #kisslinux <adamantium> be careful expanding sbase 2020-01-28T13:49:59 #kisslinux <adamantium> :D 2020-01-28T13:50:10 #kisslinux <dylanaraps> I just did it to the system. :^) 2020-01-28T13:50:13 #kisslinux <adamantium> omg 2020-01-28T13:50:16 #kisslinux <dylanaraps> https://termbin.com/33j8 2020-01-28T13:50:19 #kisslinux <dylanaraps> Look at all those alts 2020-01-28T13:50:30 #kisslinux <adamantium> thats a good way to break kiss 2020-01-28T13:50:41 #kisslinux <merakor> Yeah 2020-01-28T13:50:58 #kisslinux <adamantium> i hope you can make it 100% compat dylanaraps 2020-01-28T13:51:05 #kisslinux <adamantium> that'd be epic to be busybox free....... 2020-01-28T13:57:31 #kisslinux <dylanaraps> adamantium: That's the idea 2020-01-28T14:00:02 #kisslinux <dylanaraps> I need to somehow make sed treat the search/replace as plain text (no regex) 2020-01-28T14:00:31 #kisslinux <merakor> https://termbin.com/1yg7 2020-01-28T14:00:33 #kisslinux <merakor> nice 2020-01-28T14:01:00 #kisslinux <dylanaraps> Note: It's not done yet 2020-01-28T14:01:05 #kisslinux <merakor> Which line is that sed= 2020-01-28T14:01:15 #kisslinux <merakor> s/=/?/ 2020-01-28T14:01:21 #kisslinux <dylanaraps> Basically, /usr/bin/[ causes sed to fail 2020-01-28T14:01:24 #kisslinux <dylanaraps> Due to unmatched [] 2020-01-28T14:01:48 #kisslinux <dylanaraps> Exact line number is unknown in this case 2020-01-28T14:02:25 #kisslinux <merakor> You can do a sed for regex 2020-01-28T14:02:27 #kisslinux <dylanaraps> I need to either escape the string or make sed do no regex 2020-01-28T14:03:11 #kisslinux <merakor> Yeah that's an issue, it's nice that you tested sbase 2020-01-28T14:03:33 #kisslinux <dylanaraps> Damage is nothing really :P 2020-01-28T14:03:43 #kisslinux <dylanaraps> Just the leftover sbase>usr>bin>[ file 2020-01-28T14:04:46 #kisslinux <dylanaraps> I have an idea 2020-01-28T14:06:25 #kisslinux <dylanaraps> nvm 2020-01-28T14:06:50 #kisslinux <merakor> what was it? 2020-01-28T14:07:37 #kisslinux <dylanaraps> sed -i '/bla/d' file 2020-01-28T14:07:48 #kisslinux <dylanaraps> Can't do: sed -i '|bla|d' file 2020-01-28T14:08:07 #kisslinux <dylanaraps> Basically, delete the line and then append the new one to the bottom 2020-01-28T14:09:00 #kisslinux <dzove855> actually i don't know sed can be forced to not interpret it instead of escaping the char. 2020-01-28T14:09:32 #kisslinux <dylanaraps> You're right 2020-01-28T14:09:34 #kisslinux <dzove855> that's why i always use perl for this kind of stuff but i hope you don't will 2020-01-28T14:09:46 #kisslinux <dylanaraps> I won't 2020-01-28T14:09:59 #kisslinux <dylanaraps> stackoverflow is full of perl, ruby, python and nodejs solutions... 2020-01-28T14:10:03 #kisslinux <dylanaraps> God 2020-01-28T14:10:04 #kisslinux <dzove855> good boy :D 2020-01-28T14:11:12 #kisslinux <dzove855> actually ou could use inside sed $(printf '%q' "$line") but not sure if it is posix 2020-01-28T14:11:38 #kisslinux <dylanaraps> Dunno if %q is posixx 2020-01-28T14:11:49 #kisslinux <dylanaraps> Nope 2020-01-28T14:11:50 #kisslinux <dylanaraps> bashism 2020-01-28T14:11:57 #kisslinux <dzove855> erf.. 2020-01-28T14:12:33 #kisslinux <dylanaraps> Let me see how %q works and mimic it 2020-01-28T14:12:48 #kisslinux <dylanaraps> Using sed... 2020-01-28T14:12:58 #kisslinux <merakor> what is the sed expression you are trying to escape 2020-01-28T14:13:08 #kisslinux <merakor> sed '|bla|d' ? 2020-01-28T14:13:27 #kisslinux <dylanaraps> No no 2020-01-28T14:13:45 #kisslinux <dylanaraps> sed -i 's|/usr/bin/[|stuff here|' file 2020-01-28T14:13:50 #kisslinux <dylanaraps> '[' is the problem 2020-01-28T14:13:58 #kisslinux <dylanaraps> "Unmatched | ............." 2020-01-28T14:14:25 #kisslinux <dzove855> ? 2020-01-28T14:14:31 #kisslinux <dzove855> oups wrong chan 2020-01-28T14:14:48 #kisslinux <merakor> You could form the sed expression outside of sed 2020-01-28T14:15:01 #kisslinux <dylanaraps> Yup 2020-01-28T14:15:07 #kisslinux <dylanaraps> That's what I'm going to do 2020-01-28T14:16:46 #kisslinux <dylanaraps> Now to find all problem chars 2020-01-28T14:17:07 #kisslinux <dylanaraps> Actually... 2020-01-28T14:17:46 #kisslinux <dzove855> escape every char haha 2020-01-28T14:17:57 #kisslinux <dylanaraps> sed 's/([|()/\&/g' 2020-01-28T14:18:02 #kisslinux <dylanaraps> Disgusting already 2020-01-28T14:18:20 #kisslinux <dylanaraps> Just for [ and ( 2020-01-28T14:19:09 #kisslinux <merakor> Ah yes I love sed expressions for escaping special characters 2020-01-28T14:19:14 #kisslinux <merakor> Eyebleach 2020-01-28T14:19:35 #kisslinux <dylanaraps> It's a bit better with 'sed -E' 2020-01-28T14:19:41 #kisslinux <dylanaraps> Is '-E' posix though? 2020-01-28T14:20:02 #kisslinux <merakor> I don't think so 2020-01-28T14:20:07 #kisslinux <dylanaraps> Nope 2020-01-28T14:21:08 #kisslinux <dylanaraps> Actually, only [ is an issue 2020-01-28T14:21:12 #kisslinux <dylanaraps> ( and { are fine 2020-01-28T14:21:59 #kisslinux <merakor> [ is the only program that uses [ anyways 2020-01-28T14:22:23 #kisslinux <dylanaraps> sed 's/([|$|^)/\&/g' 2020-01-28T14:22:28 #kisslinux <dylanaraps> Also $ and ^ 2020-01-28T14:23:25 #kisslinux <dylanaraps> sed 's/([|$|^)/\&/g' 2020-01-28T14:25:02 #kisslinux <dylanaraps> sed 's/[]/$*.^[]/\&/g' 2020-01-28T14:25:08 #kisslinux <dylanaraps> Winner winner chicken dinner 2020-01-28T14:25:17 #kisslinux <dylanaraps> How awful 2020-01-28T14:25:51 #kisslinux <merakor> This is why I hate regex 2020-01-28T14:26:42 #kisslinux <dylanaraps> Ooh it handles forward slashes too 2020-01-28T14:31:12 #kisslinux <dzove855> that's the cleanest sed i saw in my life 2020-01-28T14:42:21 #kisslinux <dylanaraps> [sbase] owns '/usr/bin/[' 2020-01-28T14:43:55 #kisslinux <dylanaraps> I had to escape all 3 instances of sed 2020-01-28T14:44:00 #kisslinux <dylanaraps> Both find/replac 2020-01-28T14:44:01 #kisslinux <dylanaraps> e 2020-01-28T14:44:10 #kisslinux <dylanaraps> I pushed an awful commit 2020-01-28T14:44:16 #kisslinux <dylanaraps> I need to move it to a func 2020-01-28T14:49:42 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/pull/94/files#diff-4188679c1d8a284ccc41a6b601869e05R151 2020-01-28T14:49:44 #kisslinux <dylanaraps> Much nicer 2020-01-28T14:49:58 #kisslinux <dylanaraps> I should use printf 2020-01-28T14:55:07 #kisslinux <dzove855> actually i think i will create biss (kiss in pure bash) just for fun 2020-01-28T14:56:28 #kisslinux <dylanaraps> I'll help a little :P 2020-01-28T14:56:41 #kisslinux <dylanaraps> Will be a lot easier than what I'm doing 2020-01-28T14:56:50 #kisslinux <dzove855> will start tonight haha 2020-01-28T14:56:54 #kisslinux <dzove855> ooh yeah 2020-01-28T15:01:55 #kisslinux <merakor> Did you remove sudo and doas? 2020-01-28T15:02:11 #kisslinux <merakor> From the choices branch 2020-01-28T15:02:18 #kisslinux <dylanaraps> I did 2020-01-28T15:02:36 #kisslinux <merakor> Oh okay 2020-01-28T15:03:03 #kisslinux <merakor> I just thought you didn't implement it on alternatives 2020-01-28T15:03:13 #kisslinux <merakor> Until I removed a package 2020-01-28T15:03:13 #kisslinux <dylanaraps> Read the comments in the source in master 2020-01-28T15:04:35 #kisslinux <dylanaraps> Last thing to do is add a hook to pkg_remove(). 2020-01-28T15:04:51 #kisslinux <dylanaraps> Say you remove the package which owns the current 'ls' 2020-01-28T15:05:05 #kisslinux <dylanaraps> Should kiss automatically use an alternative if available? 2020-01-28T15:05:26 #kisslinux <dylanaraps> What happens if there are multiple alternatives?.. lol 2020-01-28T15:07:07 #kisslinux <dylanaraps> You know what, I don't think anything auto should happen in this instance. 2020-01-28T15:07:48 #kisslinux <merakor> Yeah, it would make the code way more complex 2020-01-28T15:08:11 #kisslinux <merakor> If the user is removing a package they should be aware of the thing they are doing 2020-01-28T15:08:38 #kisslinux <dylanaraps> yup 2020-01-28T15:09:09 #kisslinux <merakor> They should either do alternatives before removing a package, or should be keeping in mind what is being removed from their system 2020-01-28T15:09:15 #kisslinux <dylanaraps> Just some finishing touches now 2020-01-28T15:09:17 #kisslinux <dylanaraps> Ya 2020-01-28T15:09:19 #kisslinux <Aarg[m]> dylanaraps, I think awk and an mv -f would be cleaner in this case 2020-01-28T15:09:35 #kisslinux <dylanaraps> Aarg[m]: Will look into it 2020-01-28T15:10:15 #kisslinux <merakor> Looking forward to the next release 2020-01-28T15:10:32 #kisslinux <merakor> Having an alternatives system is a powerful feature 2020-01-28T15:12:03 #kisslinux <Aarg[m]> Just use -vvar=val and then use normal string comparison `$0 == val { ... }' 2020-01-28T15:12:16 #kisslinux <dylanaraps> Nice 2020-01-28T15:14:05 #kisslinux <merakor> ouch sbase find doesn't work well with kiss 2020-01-28T15:16:08 #kisslinux <merakor> https://termbin.com/2tjh 2020-01-28T15:17:11 #kisslinux <merakor> Adding this as an issue 2020-01-28T15:18:07 #kisslinux <dylanaraps> Nic 2020-01-28T15:18:08 #kisslinux <dylanaraps> e 2020-01-28T15:18:21 #kisslinux <dylanaraps> That's my fault 2020-01-28T15:20:01 #kisslinux <dylanaraps> Oh 2020-01-28T15:20:30 #kisslinux <dylanaraps> It's failing on: find path path path -mindepth 1 -maxdepth1 -name "$1" 2020-01-28T15:21:16 #kisslinux <merakor> Yeah the manpage doesn't have mindepth or mandepth 2020-01-28T15:21:21 #kisslinux <merakor> I think it's not POSIX 2020-01-28T15:21:44 #kisslinux <merakor> But the error seems otherwise 2020-01-28T15:22:19 #kisslinux <dylanaraps> oof 2020-01-28T15:22:27 #kisslinux <merakor> Wait a second 2020-01-28T15:22:33 #kisslinux <merakor> I think it might be an issue 2020-01-28T15:22:44 #kisslinux <merakor> 's/it/the build/' 2020-01-28T15:22:58 #kisslinux <merakor> None of the tools work as intended 2020-01-28T15:23:00 #kisslinux <dylanaraps> They aren't posix 2020-01-28T15:23:07 #kisslinux <dylanaraps> -mindepth/-maxdepth 2020-01-28T15:23:40 #kisslinux <merakor> Yeah but sbase is pretty problematic regardless of that right now 2020-01-28T15:23:53 #kisslinux <dylanaraps> Ah 2020-01-28T15:24:22 #kisslinux <merakor> That's really weird 2020-01-28T15:24:28 #kisslinux <dylanaraps> brb 2020-01-28T15:26:02 #kisslinux <merakor> Oh okay so sbase doesn't work on the tty/terminal when you first build it 2020-01-28T15:26:28 #kisslinux <merakor> Whatever command you type it just gives its usage output 2020-01-28T15:26:53 #kisslinux <merakor> But when you spawn a new shell session the problem does not persist 2020-01-28T15:26:59 #kisslinux <dylanaraps> Ah 2020-01-28T15:28:14 #kisslinux <dylanaraps> Works for me 2020-01-28T15:29:17 #kisslinux <dylanaraps> !> Package 'sbase' conflicts with another package 2020-01-28T15:29:17 #kisslinux <dylanaraps> !> Run 'KISS_CHOICE=1 kiss i sbase' to add conflicts 2020-01-28T15:29:17 #kisslinux <dylanaraps> !> as alternatives. 2020-01-28T15:29:21 #kisslinux <dylanaraps> Thoughts on this? 2020-01-28T15:29:32 #kisslinux <dylanaraps> The idea is to make it entirely opt-in 2020-01-28T15:29:57 #kisslinux <dylanaraps> The problem is handling the user installing say firefox AND firefox-bin 2020-01-28T15:30:06 #kisslinux <dylanaraps> Alternatives becomes hell in this case 2020-01-28T15:31:04 #kisslinux <dylanaraps> So rather than try to detect whether or not alternatives are "legit" or not 2020-01-28T15:31:10 #kisslinux <dylanaraps> It's better left to the user. 2020-01-28T15:35:30 #kisslinux <merakor> What is your source for sbase Dylan? 2020-01-28T15:36:07 #kisslinux <dylanaraps> The community package 2020-01-28T15:36:26 #kisslinux <dylanaraps> > make DESTDIR="$1" PREFIX=/usr sbase-box-install 2020-01-28T15:39:23 #kisslinux <merakor> sbase is really unstable 2020-01-28T15:39:49 #kisslinux <merakor> ls fixed itself after spawning a new shell 2020-01-28T15:39:51 #kisslinux <merakor> cp did not 2020-01-28T15:41:40 #kisslinux <merakor> I have never tested those simpler utilities before 2020-01-28T15:42:06 #kisslinux <merakor> Would have expected for something like grep to malfunction rather than cp and ls 2020-01-28T15:43:02 #kisslinux <merakor> sbase is not even version 0.1 right now anyways 2020-01-28T15:44:40 #kisslinux <merakor> It did function now 2020-01-28T15:44:55 #kisslinux <merakor> Although I didn't do anything? 2020-01-28T15:45:36 #kisslinux <merakor> It worked when I called it with full path /usr/local/bin/cp 2020-01-28T15:45:47 #kisslinux <merakor> but not with cp 2020-01-28T15:46:08 #kisslinux <aarng> dylanaraps: https://termbin.com/gaxw 2020-01-28T15:46:14 #kisslinux <aarng> only slightly better 2020-01-28T15:46:20 #kisslinux <merakor> Oh because I have dumb ass aliases that aren't POSIX 2020-01-28T15:46:33 #kisslinux <aarng> you could also do a read while loop instead tbh 2020-01-28T16:01:13 #kisslinux <dylanaraps> aarng: The one benefit of sed is that I can use the regex_escape function for all of the sed calls 2020-01-28T16:01:36 #kisslinux <dylanaraps> while read would work here though 2020-01-28T16:03:50 #kisslinux <aarng> oh, didn't know it's used in other places too 2020-01-28T16:09:18 #kisslinux <dylanaraps> The less different utlities I use the better 2020-01-28T16:09:31 #kisslinux <dylanaraps> Makes it easier to run kiss on other coreutils 2020-01-28T16:19:31 #kisslinux <E5ten> The righteous pursuit of removing uses of external commands in scripts :) 2020-01-28T16:19:44 #kisslinux <dylanaraps> Alternatives feature has been merged 2020-01-28T16:22:51 #kisslinux <dylanaraps> OK. Adding one last feature. 2020-01-28T16:23:15 #kisslinux <dylanaraps> If # of conflicts < threshold, do it automatically. 2020-01-28T16:24:30 #kisslinux <dylanaraps> Else it's opt-in. 2020-01-28T16:25:00 #kisslinux <dylanaraps> This will allow us to clean up the build scripts containing deletions of 1, 2 or 3 conflicting programs. 2020-01-28T16:27:35 #kisslinux <dylanaraps> (ncurses is a simple example) 2020-01-28T16:28:08 #kisslinux <dylanaraps> (Also python, which will allow you to change the default 'python' bin version) 2020-01-28T16:31:20 #kisslinux <adamantium> dylanaraps: can i get feedback to make this better sometime when you're bored https://github.com/a-schaefers/spm 2020-01-28T16:31:36 #kisslinux <adamantium> I made it a long time ago 2020-01-28T16:32:05 #kisslinux <adamantium> Just tried cleaning it up, the worst part is the config file has redundant stanzas and I wish I knew how to make it cleaner, with some kind of loop or something. 2020-01-28T16:32:36 #kisslinux <dylanaraps> Sure 2020-01-28T16:33:14 #kisslinux <adamantium> I think you could actually turn the script into something that people would use 2020-01-28T16:33:21 #kisslinux <adamantium> *lol* 2020-01-28T16:33:25 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/releases/tag/untagged-7d1b528d2829a3d9dc8a 2020-01-28T16:33:34 #kisslinux <dylanaraps> Here's the draft for the next kiss release 2020-01-28T16:33:43 #kisslinux <dylanaraps> I think it's ready for 1.0 2020-01-28T16:34:48 #kisslinux <adamantium> Not until we get reproduceable builds with lock files and add an automated build system 2020-01-28T16:35:14 #kisslinux <adamantium> ;) 2020-01-28T16:40:06 #kisslinux <dylanaraps> https://termbin.com/lkbk 2020-01-28T16:40:11 #kisslinux <dylanaraps> Here's some fixes 2020-01-28T16:40:16 #kisslinux <dylanaraps> I probably broke something though 2020-01-28T16:40:44 #kisslinux <dylanaraps> Yeah, I didn't update the thresholds list in the loop 2020-01-28T16:43:46 #kisslinux <adamantium> HEHE 2020-01-28T16:45:28 #kisslinux <adamantium> dylanaraps: rm -rf "$conf_dir/state"/* > /dev/null 2>&1 #shh your comment about not having -rr 2020-01-28T16:45:38 #kisslinux <adamantium> it is globbing /* the directory 2020-01-28T16:45:43 #kisslinux <dylanaraps> lol 2020-01-28T16:45:43 #kisslinux <adamantium> just need to kill the files 2020-01-28T16:45:46 #kisslinux <dylanaraps> Ah 2020-01-28T16:45:51 #kisslinux <adamantium> in that one spot 2020-01-28T16:45:58 #kisslinux <aarng> can't you use read instead of cat, adamantium? 2020-01-28T16:46:31 #kisslinux <adamantium> probably aarng IDK i'm still a script noob 2020-01-28T16:47:52 #kisslinux <dylanaraps> https://termbin.com/njzcm 2020-01-28T16:47:53 #kisslinux <dylanaraps> :D 2020-01-28T16:51:06 #kisslinux <adamantium> ya idk how to use the set thing you did dylanaraps 2020-01-28T16:56:39 #kisslinux <aarng> adamantium, you generally don't need cat unless you really want to read multiple lines in one go 2020-01-28T16:57:06 #kisslinux <adamantium> How do you use read to with my example, then 2020-01-28T16:57:10 #kisslinux <aarng> and especially stuff in /sys is just a single word/line 2020-01-28T16:57:14 #kisslinux <adamantium> cool 2020-01-28T16:57:17 #kisslinux <aarng> just `read file` 2020-01-28T16:57:22 #kisslinux <adamantium> i tried that 2020-01-28T16:57:30 #kisslinux <aarng> eeh 2020-01-28T16:57:33 #kisslinux <aarng> read var file 2020-01-28T16:57:41 #kisslinux <adamantium> bash: read: `/sys/class/power_supply/BAT0/status': not a valid identifier 2020-01-28T16:58:03 #kisslinux <aarng> but you have to be careful with backslash escapes, which read interprets unless you use -r 2020-01-28T16:58:54 #kisslinux <aarng> and one more caveat, it strips leading and trailing field separator chars from the end and beginning of the string 2020-01-28T17:00:02 #kisslinux <aarng> read var <file 2020-01-28T17:00:03 #kisslinux <aarng> sry 2020-01-28T17:00:30 #kisslinux <dylanaraps> https://github.com/idunham/tinyxserver 2020-01-28T17:00:31 #kisslinux <dylanaraps> Woah 2020-01-28T17:02:16 #kisslinux <dylanaraps> Also 2020-01-28T17:02:17 #kisslinux <dylanaraps> http://www.microwindows.org/ 2020-01-28T17:04:16 #kisslinux <adamantium> thanks aarng 2020-01-28T17:10:17 #kisslinux <adamantium> dylanaraps: https://termbin.com/98id 2020-01-28T17:10:53 #kisslinux <adamantium> Can you tell me how to implement your set -- 99 80 40 20 10 5 section with https://termbin.com/98id 2020-01-28T17:11:15 #kisslinux <adamantium> sorry, pasted twice, my question is how to implement your set -- with the threshholds section. 2020-01-28T17:11:25 #kisslinux <dylanaraps> That populates '$@" with that list 2020-01-28T17:11:29 #kisslinux <dylanaraps> "$@"* 2020-01-28T17:11:45 #kisslinux <adamantium> k 2020-01-28T17:11:50 #kisslinux <dylanaraps> So you have a list instead of a "fake" list (a string) 2020-01-28T17:11:55 #kisslinux <adamantium> right 2020-01-28T17:12:35 #kisslinux <adamantium> not both "$@"* .... i have to choose $@ or $* correct? 2020-01-28T17:14:26 #kisslinux <dylanaraps> That was me correcting myself 2020-01-28T17:14:31 #kisslinux <dylanaraps> "$@" or "$*" yes 2020-01-28T17:14:43 #kisslinux <dylanaraps> "$*" is no different to how you had it though 2020-01-28T17:16:07 #kisslinux <adamantium> k got this 2020-01-28T17:16:12 #kisslinux <adamantium> time to test 2020-01-28T17:16:37 #kisslinux <adamantium> it's surprising low resources btw considering it has to poll every X seconds 2020-01-28T17:16:59 #kisslinux <adamantium> i remember last year i was thinking hard about how to do as few things repeatedly as possible in this script 2020-01-28T17:18:34 #kisslinux <adamantium> okay dylanaraps it works with all your changes. COOL 2020-01-28T17:18:40 #kisslinux <adamantium> going to push it 2020-01-28T17:20:35 #kisslinux <dylanaraps> :D 2020-01-28T17:21:06 #kisslinux <adamantium> dylanaraps: is there no way to make the config better 2020-01-28T17:21:13 #kisslinux <adamantium> it feels redundant 2020-01-28T17:21:47 #kisslinux <adamantium> lmao i also have a solo camelCase var. yolo 2020-01-28T17:27:38 #kisslinux <dylanaraps> I'll take a look in a bit 2020-01-28T17:32:11 #kisslinux <E5ten> lol you don't need to do echo "$*" | tr ' ' 'n' | while read -r state; do, they're already your positional parameters just loop over them with 'for state in "$@"; do' or 'for state do' 2020-01-28T17:33:15 #kisslinux <E5ten> adamantium: and instead of checking if $batt_percent is equal to $state and separately if it's less than $state you can use -le to check if it's less than or equal to 2020-01-28T17:35:51 #kisslinux <adamantium> ok cool. im about to sleep, too tired right now. im going to literally copy and paste your suggestion to my notes. thanks E5ten 2020-01-28T17:36:27 #kisslinux <E5ten> you shouldn't need to use >/dev/null 2>&1 with rm -f, since the config dir is yours there should never be a dir in it, and rm -f doesn't print an error message if a file doesn't exist 2020-01-28T17:36:58 #kisslinux <adamantium> ya dev nulls suck 2020-01-28T17:38:11 #kisslinux <E5ten> also, imo don't bother checking if the script is already running and just rely on the user knowing not to run it twice? but if you do need to check don't use pidof cuz it's not POSIX 2020-01-28T17:40:05 #kisslinux <adamantium> ya its overenginnered shit 2020-01-28T17:40:28 #kisslinux <adamantium> thanks dude 2020-01-28T17:40:34 #kisslinux <E5ten> actually I think what'd be best is on startup make the script create a file in the config dir like "running" and remove it on exit, and then have it check for that file before doing anything and die with the "SPM is already running" thing if it exists 2020-01-28T17:41:05 #kisslinux <adamantium> that is a neat approach 2020-01-28T17:42:27 #kisslinux <adamantium> hey E5ten i wonder if you might send me a termbin fixing the "$*" | tr ' ' 'n' | while read -r mess I've made to show me what you mean. ::D 2020-01-28T17:43:19 #kisslinux <E5ten> That line can just be replaced with for state do 2020-01-28T17:43:32 #kisslinux <E5ten> Which is equivalent to for state in "$@"; do 2020-01-28T17:43:49 #kisslinux <E5ten> Which loops over the positional parameters 2020-01-28T17:46:02 #kisslinux <adamantium> E5ten: https://termbin.com/1bkm 2020-01-28T17:46:08 #kisslinux <adamantium> i commented the old line, so like such? 2020-01-28T17:46:19 #kisslinux <adamantium> It sure looks a lot more sane to me 2020-01-28T17:46:43 #kisslinux <adamantium> I found that scrap a while back trying to switch from using bash arrays to posix, someone said to do it the other way, but i like hte looks of your way better 2020-01-28T17:47:21 #kisslinux <E5ten> It's not just the look that's better lol, that's the right way to loop over the positional parameters 2020-01-28T17:47:41 #kisslinux <E5ten> In this case they would never contain a space, but if they did your method would split one parameter that has a space in it into 2 2020-01-28T17:48:59 #kisslinux <E5ten> Think of $@ as a bash array 2020-01-28T17:49:10 #kisslinux <E5ten> It's just that in POSIX sh you only get one array 2020-01-28T17:49:24 #kisslinux <adamantium> used -le now. good 2020-01-28T17:50:12 #kisslinux <adamantium> Thanks so much. Couldn't figure out posix array for my life til now 2020-01-28T17:52:04 #kisslinux <adamantium> ya it's way better 2020-01-28T17:53:54 #kisslinux <aarng> btw: https://termbin.com/p7lg 2020-01-28T17:53:56 #kisslinux <aarng> opinions? 2020-01-28T17:54:39 #kisslinux <aarng> 2 doesn't even need the backslash 2020-01-28T17:54:42 #kisslinux <E5ten> adamantium: Touch calls can be replaced with : >file (the : isn't necessary but without it you'll get a shellcheck warning) 2020-01-28T18:01:27 #kisslinux <adamantium> I think 4 is not hte same in all cases 2020-01-28T18:02:36 #kisslinux <adamantium> idk 2020-01-28T18:02:46 #kisslinux <adamantium> thanks E5ten good thinking on that again 2020-01-28T18:03:14 #kisslinux <adamantium> It's like a lost art, good shell scripts 2020-01-28T18:05:06 #kisslinux <aarng> I tried all cases, should be good 2020-01-28T18:08:19 #kisslinux <adamantium> k 2020-01-28T18:17:44 #kisslinux <merakor> adamantium: You should probably switch sbase community package to the official git repository. 2020-01-28T18:17:57 #kisslinux <merakor> Now that we have git functionality 2020-01-28T18:18:07 #kisslinux <merakor> They have also pulled michael's patches to sbase 2020-01-28T18:18:46 #kisslinux <merakor> They still haven't pulled michael's patches to the suckless repository for ubase though 2020-01-28T18:19:14 #kisslinux <merakor> It still doesn't build without Michael's patches 2020-01-28T18:19:20 #kisslinux <adamantium> Ok merakor. 2020-01-28T18:19:28 #kisslinux <adamantium> Thanks 2020-01-28T18:19:37 #kisslinux <merakor> Sure thing 2020-01-28T18:19:54 #kisslinux <adamantium> Will try to do it tonight 2020-01-28T18:24:59 #kisslinux <aarng> dylanaraps, libva-utils does not depend on libva and fails to build 2020-01-28T18:26:42 #kisslinux <dylanaraps> aarng: Will fix 2020-01-28T18:27:14 #kisslinux <dylanaraps> Fixed 2020-01-28T18:27:20 #kisslinux <merakor> dylanaraps: you said something like `kiss a | grep ^sbase | while read -r line; do kiss a "$line"; done` 2020-01-28T18:27:30 #kisslinux <merakor> Here is an issue though 2020-01-28T18:27:36 #kisslinux <merakor> Now that sudo is gone 2020-01-28T18:27:43 #kisslinux <merakor> I enter like a billion passwords 2020-01-28T18:27:50 #kisslinux <aarng> cheers 2020-01-28T18:28:01 #kisslinux <dylanaraps> merakor: I know 2020-01-28T18:28:17 #kisslinux <merakor> Are you going to keep it like that? 2020-01-28T18:29:10 #kisslinux <merakor> I'll try to do `yes 'mypassword' | kiss a $line` for the memes 2020-01-28T18:29:19 #kisslinux <dylanaraps> merakor: I'll fix it 2020-01-28T18:30:20 #kisslinux <merakor> Okay. 2020-01-28T18:30:32 #kisslinux <dylanaraps> Maybe take input over stdin one per line 2020-01-28T18:30:42 #kisslinux <dylanaraps> So you can pipe into 'kiss a' 2020-01-28T18:31:01 #kisslinux <dylanaraps> kiss a | grep ^sbase | kiss a 2020-01-28T18:31:02 #kisslinux <dylanaraps> lol 2020-01-28T18:32:29 #kisslinux <merakor> That would make sense, actually. 2020-01-28T18:33:01 #kisslinux <dylanaraps> It would have to be 'kiss a -' to read from stdin 2020-01-28T18:34:25 #kisslinux <merakor> Yeah 2020-01-28T18:34:38 #kisslinux <merakor> I am trying to solve the `find` issue for sbase 2020-01-28T18:34:54 #kisslinux <merakor> It sucks that mindepth is not POSIX 2020-01-28T18:35:41 #kisslinux <merakor> most non-POSIX stuff GNU enforces are actually useless 2020-01-28T18:35:41 #kisslinux <dylanaraps> find is kinda unusable without those 2020-01-28T18:36:02 #kisslinux <merakor> Yeah 2020-01-28T18:36:30 #kisslinux <dylanaraps> merakor: Pushed the stdin feature 2020-01-28T18:38:20 #kisslinux <merakor> > command not found: mv 2020-01-28T18:38:25 #kisslinux <merakor> now that's nice 2020-01-28T18:38:55 #kisslinux <dylanaraps> lol 2020-01-28T18:39:25 #kisslinux <dylanaraps> Let me fix that 2020-01-28T18:40:40 #kisslinux <merakor> I manually did a mv with busybox 2020-01-28T18:44:19 #kisslinux <dylanaraps> Fixed 2020-01-28T18:44:46 #kisslinux <dylanaraps> Swapped first 'mv' to 'cp' to ensure the swap never leaves the package manager without a utility it needs during the swap. 2020-01-28T18:46:17 #kisslinux <adamantium> aiight this thing is DONE 2020-01-28T18:46:27 #kisslinux <adamantium> creates its' own config now and stops bitching 2020-01-28T18:46:35 #kisslinux <adamantium> https://github.com/a-schaefers/spm 2020-01-28T18:50:28 #kisslinux <merakor> dylanaraps: sbase sed doesn't work with kiss either :D 2020-01-28T18:54:43 #kisslinux <adamantium> i think the find had issues too iirc 2020-01-28T18:54:52 #kisslinux <merakor> Yeah 2020-01-28T18:55:02 #kisslinux <merakor> I am reverting to busybox :( 2020-01-28T18:55:09 #kisslinux <mforney> merakor: if you run into bugs with sbase, please report them (preferably with a patch), so they can get fixed 2020-01-28T18:55:23 #kisslinux <merakor> Oh hey michael 2020-01-28T18:55:45 #kisslinux <merakor> Yeah the issue is the compatability rather than bugs 2020-01-28T18:58:42 #kisslinux <merakor> I only had issues with ubase, but your patches fix them. 2020-01-28T18:59:56 #kisslinux <aarng> no -i in suckless sed, merakor? 2020-01-28T18:59:57 #kisslinux <mforney> dylanaraps: regarding sed -E, it's accepted for posix-next (http://austingroupbugs.net/view.php?id=528), so i wouldn't refrain from using it 2020-01-28T19:00:45 #kisslinux <merakor> aarng: Nope 2020-01-28T19:01:30 #kisslinux <mforney> sed -i was proposed and rejected for inclusion in posix because implementations have conflicting behavior that can't be standardized: http://austingroupbugs.net/view.php?id=530 2020-01-28T19:01:42 #kisslinux <merakor> sed -i is not POSIX, but not having it is not an issue 2020-01-28T19:01:57 #kisslinux <merakor> you could manually do it via shell 2020-01-28T19:02:03 #kisslinux <mforney> yeah, it's easy enough to just redirect to a temporary file and then rename 2020-01-28T19:02:10 #kisslinux <aarng> yeah, just write a wrapper 2020-01-28T19:02:25 #kisslinux <aarng> or use ed :p 2020-01-28T19:02:32 #kisslinux <mforney> sed expr file > file.tmp && mv file.tmp file 2020-01-28T19:04:32 #kisslinux <mforney> merakor: yeah, ubase is currently unmaintained. i need to reach out to the current maintainer to see if he's okay with me maintaining it 2020-01-28T19:04:44 #kisslinux <dylanaraps> OK. 2020-01-28T19:04:54 #kisslinux <dylanaraps> Will write a sed wrapper function now 2020-01-28T19:05:24 #kisslinux <merakor> Yeah, I have mailed Dimitris the other day and didn't have any response 2020-01-28T19:05:26 #kisslinux <dylanaraps> It's only 'sed -i' which is the issue right? 2020-01-28T19:05:55 #kisslinux <merakor> I was going to ask him to add a source tarball for sinit 1.1 2020-01-28T19:06:23 #kisslinux <merakor> By the other day, I mean it was weeks ago 2020-01-28T19:06:32 #kisslinux <merakor> dylanaraps: yup 2020-01-28T19:08:57 #kisslinux <mforney> i think an 'inplace' function might be kind of useful, for other tools as well. inplace() { file=$1; shift; "$@" < "$1" > "$1.tmp" && mv "$1.tmp" "$1"; } 2020-01-28T19:10:09 #kisslinux <mforney> could use it with awk, sort, cut, grep, etc 2020-01-28T19:10:44 #kisslinux <dylanaraps> Neat 2020-01-28T19:11:11 #kisslinux <dylanaraps> There's actually only one other place that could be used 2020-01-28T19:11:54 #kisslinux <dylanaraps> There's 3 'sed -i' instances and one separate instance of 'sort' which uses a temporary file 2020-01-28T19:19:03 #kisslinux <aarng> I'd still be pro ed for the things you do in kiss but busybox ed doesn't even have -s 2020-01-28T19:20:33 #kisslinux <E5ten> I'm conflicted between which sed -i choice is worse cuz on one hand optional args are stupid but on the other hand who ever wants to use the backup feature of sed -i I wish it didn't have an argument at all and I can do that with the optional arg -i but not with BSD's required arg 2020-01-28T19:22:14 #kisslinux <dylanaraps> It's so handy... 2020-01-28T19:22:36 #kisslinux <E5ten> the backup feature or -i in general? 2020-01-28T19:22:41 #kisslinux <dylanaraps> -i in general 2020-01-28T19:22:46 #kisslinux <E5ten> agreed 2020-01-28T19:22:50 #kisslinux <dylanaraps> Never used the backup feature 2020-01-28T19:23:19 #kisslinux <dylanaraps> Two of these 'sed -i' calls must run as root so I have to workaround this issue now 2020-01-28T19:23:24 #kisslinux <E5ten> I do not understand why the backup feature exists if you want a backup just copy the file first 2020-01-28T19:23:27 #kisslinux <dylanaraps> I'll push my commit so you can see 2020-01-28T19:23:38 #kisslinux <merakor> dylanaraps: to master? 2020-01-28T19:23:39 #kisslinux <E5ten> if the people who created -i just did that it could be entirely argument free and that would be so much nicer 2020-01-28T19:23:57 #kisslinux <dylanaraps> merakor: yes 2020-01-28T19:24:13 #kisslinux <dylanaraps> oops 2020-01-28T19:24:16 #kisslinux <dylanaraps> Hang on 2020-01-28T19:24:20 #kisslinux <dylanaraps> > sed: unmatched '/' 2020-01-28T19:24:56 #kisslinux <dylanaraps> Hang on 2020-01-28T19:24:58 #kisslinux <dylanaraps> Still borked 2020-01-28T19:26:04 #kisslinux <E5ten> mforney: I'm gonna make a PR for the samurai one-line thing, so that if you decide you're willing to accept adding any more ifdefs but have problems with the code you can comment on those 2020-01-28T19:26:46 #kisslinux <dylanaraps> merakor: Wait 5 pls 2020-01-28T19:27:07 #kisslinux <merakor> Sure, it's okay 2020-01-28T19:28:14 #kisslinux <mforney> E5ten: okay, thanks 2020-01-28T19:32:42 #kisslinux <aarng> dylanaraps: https://termbin.com/4221 2020-01-28T19:34:23 #kisslinux <dylanaraps> aarng: The issue is that this may need to run as root through 'su' 2020-01-28T19:34:42 #kisslinux <dylanaraps> Actually, that'd be fine 2020-01-28T19:35:03 #kisslinux <dylanaraps> Neat 2020-01-28T19:49:36 #kisslinux <dylanaraps> Hm, busybox ed seems to fail with / in the string 2020-01-28T19:50:29 #kisslinux <dylanaraps> > : ed: unknown option for substitute 2020-01-28T19:50:40 #kisslinux <dylanaraps> This appears and it fails when the string contains escape slashes 2020-01-28T19:53:22 #kisslinux <dylanaraps> It works when I replace the separator 2020-01-28T19:55:15 #kisslinux <dylanaraps> > Within the RE, the RE delimiter itself can be used as a literal character if it is preceded by a backslash. 2020-01-28T19:55:19 #kisslinux <dylanaraps> From the POSIX spec 2020-01-28T19:55:24 #kisslinux <dylanaraps> busybox bug? :( 2020-01-28T19:58:09 #kisslinux <dylanaraps> Ah, busybox also fails with all escaped forward slashes 2020-01-28T20:04:04 #kisslinux <aarng> rip 2020-01-28T20:04:29 #kisslinux <aarng> seems it didn't get any love at all 2020-01-28T20:06:31 #kisslinux <dylanaraps> I also need to match the whole line 2020-01-28T20:09:49 #kisslinux <aarng> oh I see, it doesn't even have ^ and $ 2020-01-28T20:10:06 #kisslinux <aarng> yeah, forget it then, busybox ed sucks hard unfortunately 2020-01-28T20:10:40 #kisslinux <konimex> for sinit I think at this point since kiss already supports commit hash we should point there instead of asking for a tarball version 2020-01-28T20:11:28 #kisslinux <dylanaraps> adamantium: 2020-01-28T20:13:33 #kisslinux <adamantium> k 2020-01-28T20:19:58 #kisslinux <mforney> i'm unconvinced of the value of the single commit for sinit 1.1 vs 1.0. see https://lists.suckless.org/hackers/1803/15983.html. as far as i can tell from the source (and this matches results from my testing), init will get SIGCHLD, even if the process died and the original parent ignored SIGCHLD: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/kernel/exit.c#n586 2020-01-28T20:23:00 #kisslinux <dylanaraps> Noted 2020-01-28T20:23:08 #kisslinux <dylanaraps> Will ask adamantium to make the change 2020-01-28T20:23:54 #kisslinux <adamantium> revert to 1.0 ? 2020-01-28T20:24:06 #kisslinux <dylanaraps> Yup 2020-01-28T20:24:09 #kisslinux <adamantium> hah 2020-01-28T20:24:17 #kisslinux <adamantium> making my job easy 2020-01-28T20:24:20 #kisslinux <mforney> it does no harm, but as far as i can tell, has no benefit 2020-01-28T20:24:38 #kisslinux <mforney> (at least on linux) 2020-01-28T20:25:07 #kisslinux <dylanaraps> Replacing 'sed -i' is a little tricky here 2020-01-28T20:26:59 #kisslinux <dylanaraps> 1) I need to be able to match the whole line (busybox ed or even POSIX ed can't(?)) 2020-01-28T20:27:30 #kisslinux <dylanaraps> 2) The temporary file business needs to work over say 'su'/'sudo' (tee works here probably) 2020-01-28T20:27:50 #kisslinux <dylanaraps> 3) It needs to accept escaped forward slashes (busybox ed fails here) 2020-01-28T20:29:28 #kisslinux <E5ten> how big can the file be expected to be/would it be reasonable to just save it in a variable, printf '%sn' "$var" | sed 'exp' > file 2020-01-28T20:30:24 #kisslinux <dylanaraps> The file is a package manifest 2020-01-28T20:30:43 #kisslinux <dylanaraps> Can be anywhere from 20~ lines to 5000+ lines 2020-01-28T20:30:55 #kisslinux <E5ten> nevermind then lol 2020-01-28T20:31:26 #kisslinux <merakor> Can't you just do something like `sed 'exp' < manifest > manifest.bak && mv manifest.bak manifest` 2020-01-28T20:31:53 #kisslinux <dylanaraps> merakor: Nope 2020-01-28T20:32:02 #kisslinux <dylanaraps> Can't use shell redirection as the shell runs as a normal user 2020-01-28T20:32:19 #kisslinux <merakor> I see 2020-01-28T20:32:57 #kisslinux <merakor> can't you use tee, then? 2020-01-28T20:33:28 #kisslinux <dylanaraps> Here's the idea I have now: https://termbin.com/x75e 2020-01-28T20:34:00 #kisslinux <dylanaraps> This isn't 100% what it will look like once in kiss 2020-01-28T20:34:03 #kisslinux <dylanaraps> Just a general idea 2020-01-28T20:34:11 #kisslinux <dylanaraps> busybox sed seems to fail here though 2020-01-28T20:34:19 #kisslinux <dylanaraps> Actually 2020-01-28T20:34:19 #kisslinux <merakor> Oh I see 2020-01-28T20:34:30 #kisslinux <dylanaraps> I think our 'su' wrapper fails as stdin is blocke 2020-01-28T20:34:35 #kisslinux <dylanaraps> blocked* 2020-01-28T20:34:37 #kisslinux <dylanaraps> Great 2020-01-28T20:34:56 #kisslinux <dylanaraps> Ah 2020-01-28T20:35:09 #kisslinux <dylanaraps> It fails as stdin is used for password input 2020-01-28T20:35:21 #kisslinux <dylanaraps> 'tee' can't be used then 2020-01-28T20:35:47 #kisslinux <dylanaraps> This is a 10/10 situation 2020-01-28T20:36:07 #kisslinux <mforney> why does this need to run with elevated privileges? 2020-01-28T20:36:25 #kisslinux <dylanaraps> This is for the alternatives feature which touches the filesystem 2020-01-28T20:36:26 #kisslinux <merakor> It edits the manifest files in /var/db/kiss/installed 2020-01-28T20:36:45 #kisslinux <dylanaraps> 'sed' is used here to rewrite a line in a package's manifest 2020-01-28T20:39:13 #kisslinux <dylanaraps> I wonder if I could use 'ed' to find and delete the whole line and then insert the new one 2020-01-28T20:42:28 #kisslinux <mforney> does `dosu 'sed expr manifest > manifest.bak && mv manifest.bak manifest'` work? since you are using `su -c "$*"` anyway 2020-01-28T20:44:00 #kisslinux <dylanaraps> mforney: I'm trying to do it in a function but the issue is that the function may also run as a normal user. 2020-01-28T20:44:10 #kisslinux <dylanaraps> I could use that in the two places it needs root though. 2020-01-28T20:45:54 #kisslinux <merakor> > doas: Operation not permitted 2020-01-28T20:46:47 #kisslinux <merakor> Oh sorry this is doas not dosu 2020-01-28T20:46:50 #kisslinux <merakor> Whoops 2020-01-28T20:53:39 #kisslinux <mforney> i quite like runtool from perp (http://b0llix.net/perp/site.cgi?page=runtool.8) for similar redirection issues. i use it to suspend my system: `doas runtool -F '1>/sys/power/state' echo mem`. but obviously not appropriate here 2020-01-28T21:05:08 #kisslinux <dylanaraps> Neat 2020-01-28T21:08:51 #kisslinux <dylanaraps> Done... 2020-01-28T21:09:27 #kisslinux <dylanaraps> https://github.com/kisslinux/kiss/commit/ea9dc1278ae3916ad1efe72c6afb873060879e09 2020-01-28T21:09:30 #kisslinux <dylanaraps> Tada 2020-01-28T21:09:49 #kisslinux <dylanaraps> I wanted to put this in a function but as it can run as both a normal user and through 'su'... 2020-01-28T21:21:25 #kisslinux <dylanaraps> Ooh 2020-01-28T21:21:31 #kisslinux <dylanaraps> Found how I can use posix find 2020-01-28T21:30:58 #kisslinux <dylanaraps> > find "$@" ( ! -name . -prune ) -name "$query" 2020-01-28T21:31:05 #kisslinux <dylanaraps> Basically -mindepth 1 and -maxdepth 1 2020-01-28T21:31:11 #kisslinux <dylanaraps> With one caveat 2020-01-28T21:31:21 #kisslinux <dylanaraps> Each search path must end in /. 2020-01-28T21:39:20 #kisslinux <aarng> looking good 2020-01-28T21:39:34 #kisslinux <aarng> also: https://git.busybox.net/busybox/tree/editors/ed.c#n128 2020-01-28T21:39:49 #kisslinux <aarng> no regex support, lol 2020-01-28T21:40:16 #kisslinux <dylanaraps> heh 2020-01-28T21:41:56 #kisslinux <dylanaraps> OK. kiss now works with sbase find 2020-01-28T21:42:22 #kisslinux <dylanaraps> sbase sed time 2020-01-28T21:42:41 #kisslinux <dylanaraps> -> Swapping '/usr/bin/sed' from 'busybox' to 'sbase' 2020-01-28T21:42:45 #kisslinux <dylanaraps> This is so cool... 2020-01-28T21:45:54 #kisslinux <dylanaraps> sed is gud 2020-01-28T21:57:49 #kisslinux <dylanaraps> OK 2020-01-28T21:57:55 #kisslinux <dylanaraps> Full sbase compatibility 2020-01-28T22:00:43 #kisslinux <dylanaraps> ALSO: kiss a | grep ^sbase | kiss a - 2020-01-28T22:00:48 #kisslinux <dylanaraps> This is awesome 2020-01-28T22:07:07 #kisslinux <mforney> very nice. if you run into any problems with building packages against sbase, don't hesitate to reach out to me. it'd be great to have more people using sbase on their system to try to find and fix any incompatibilities 2020-01-28T22:07:34 #kisslinux <dylanaraps> Will do 2020-01-28T22:07:44 #kisslinux <mforney> recently i've been messing around with pkgsrc, which has been a good testing ground 2020-01-28T22:08:11 #kisslinux <dylanaraps> Next up I'll be testing our bootup/shutdown scripts 2020-01-28T22:16:11 #kisslinux <dylanaraps> OK. Init scripts are gud 2020-01-28T22:23:29 #kisslinux <KayW> buffet: im here now 2020-01-28T22:23:37 #kisslinux <buffet> hello 2020-01-28T22:23:45 #kisslinux <KayW> Wont be for long though 2020-01-28T22:25:17 #kisslinux <KayW> have to go 2020-01-28T22:25:25 #kisslinux <dylanaraps> o/ 2020-01-28T22:49:13 #kisslinux <dzove855> dylanaraps: are you there? 2020-01-28T22:50:11 #kisslinux <dylanaraps> Yeah 2020-01-28T22:51:49 #kisslinux <dzove855> actually i'm now working on biss, but there is something that i don't understand. It's line 90-92 2020-01-28T22:52:22 #kisslinux <dylanaraps> Of master? 2020-01-28T22:52:40 #kisslinux <dzove855> you say'd in the comment The below commands read from '/dev/tty' to ensure they work when run from a subshell. 2020-01-28T22:52:49 #kisslinux <dzove855> what do you mean by this comment? 2020-01-28T22:52:52 #kisslinux <dzove855> yeah master 2020-01-28T22:53:40 #kisslinux <dylanaraps> If that function is run from a ()/$() block the original tty won't be connected anymore. 2020-01-28T22:54:03 #kisslinux <dylanaraps> Try running : $(vim) 2020-01-28T22:54:06 #kisslinux <dylanaraps> As an example 2020-01-28T22:54:10 #kisslinux <dylanaraps> ': $(vim)' 2020-01-28T22:54:34 #kisslinux <dzove855> okey i see 2020-01-28T22:55:59 #kisslinux <E5ten> mforney: I don't really expect that querying terminal size on each print would tangibly decrease efficiency and switching to it from the SIGWINCH checking would drop 16 lines from the PR in exchange of 1, including removing one of the ifdefs the PR adds, I think that's a lot better and worth the tradeoff 2020-01-28T23:14:57 #kisslinux <mforney> sounds fine to me