2020-02-02T00:46:04 #kisslinux mforney: is the ioctl header POSIX? because I realized if it is it can just be included unconditionally and the ifdefs, instead of checking a specific set of systems, can just check #ifdef TIOCGWINSZ 2020-02-02T00:50:33 #kisslinux Hadn't really thought about how TIOCGWINSZ was a define for some reason 2020-02-02T08:16:05 #kisslinux what do y'all use to record your terminals? (output as gif/svg) 2020-02-02T09:36:01 #kisslinux E5ten: yeah, i was thinking the same thing. unfortunately sys/ioctl.h is non-posix, posix declares ioctl in this weird stropts.h header 2020-02-02T09:53:24 #kisslinux E5ten: but i wonder if we can just have two versions of the printstatus function, one in status-dumb.c, and one in status-ansi.c or something. then you could just build the choose the one you want via a make variable 2020-02-02T11:47:03 #kisslinux dylanaraps: kiss-chroot.tar.xz's sha256sum does not match kiss-chroot.tar.xz.sha256 2020-02-02T11:55:27 #kisslinux paper_: Let me see if I can reproduce. 2020-02-02T11:56:01 #kisslinux You may also want to try verifying the signature for the time being. 2020-02-02T11:56:09 #kisslinux yes, the signature is good 2020-02-02T11:56:30 #kisslinux oh no... don't mind me 2020-02-02T11:56:47 #kisslinux I did something stupid and that's why it didn't work 2020-02-02T11:59:12 #kisslinux Fixed 2020-02-02T11:59:35 #kisslinux I forgot to update the file 2020-02-02T11:59:54 #kisslinux This was 12 days ago... Goes to show how many people verify the checksums 2020-02-02T12:00:20 #kisslinux ehm... actually, the mistake was on my side 2020-02-02T12:00:53 #kisslinux my brain stopped and I sha256sumed the .sha256 file... 2020-02-02T12:01:07 #kisslinux when I do it correctly, the checksum matches 2020-02-02T12:04:57 #kisslinux Oh 2020-02-02T12:05:04 #kisslinux Don't tell me I just did the same thing 2020-02-02T12:05:25 #kisslinux xD 2020-02-02T12:05:45 #kisslinux mforney: that makes sense 2020-02-02T12:05:49 #kisslinux I did 2020-02-02T12:05:55 #kisslinux >:| 2020-02-02T12:07:16 #kisslinux Fixed 2020-02-02T13:10:32 #kisslinux https://getkiss.org/blog/20200202a 2020-02-02T13:18:00 #kisslinux dylanaraps: small typo 2020-02-02T13:18:02 #kisslinux >Here's how'd you'd swap 2020-02-02T13:20:16 #kisslinux Thanks 2020-02-02T16:56:01 #kisslinux dylanaraps: is there a better way than to do this: https://stackoverflow.com/questions/27816750/bash-variable-substitution-and-strings 2020-02-02T16:56:23 #kisslinux if i read a string from a file (multi-line), and it contains say $a and $b in it 2020-02-02T16:56:55 #kisslinux and my script has a='foo' and b='bar' defined 2020-02-02T16:57:14 #kisslinux is there a better way to replace those than having to do what's in that SO answer? 2020-02-02T17:02:37 #kisslinux icyphox: What kind of file are you reading? 2020-02-02T17:02:45 #kisslinux a plain-text file dylanaraps 2020-02-02T17:03:25 #kisslinux i want to perform variable substitution, essentially 2020-02-02T17:11:12 #kisslinux Ah, I see. 2020-02-02T17:11:15 #kisslinux bash or sh? 2020-02-02T17:11:18 #kisslinux bash 2020-02-02T17:13:10 #kisslinux You want the variables replaced with their values and the resulting lines printed? 2020-02-02T17:13:57 #kisslinux yes dylanaraps, that's correct 2020-02-02T17:14:24 #kisslinux what what it's worth, the values here are color esc seqs 2020-02-02T17:15:26 #kisslinux for what* 2020-02-02T17:36:54 #kisslinux eval is the easiest and shortest way 2020-02-02T17:37:09 #kisslinux oh no 2020-02-02T17:37:18 #kisslinux i've got a lot of *s in my text file 2020-02-02T17:37:23 #kisslinux '*'s 2020-02-02T17:37:30 #kisslinux i tried that 2020-02-02T17:38:02 #kisslinux what if i 'set -f' and then eval? 2020-02-02T17:39:47 #kisslinux https://termbin.com/m58o4 2020-02-02T17:40:05 #kisslinux Also showing an unknown but neat mapfile feature 2020-02-02T17:40:25 #kisslinux Basically, using 'declare' inside of 'eval' 2020-02-02T17:40:28 #kisslinux Wrapped in quotes 2020-02-02T17:40:40 #kisslinux To declare a dummy variabel 2020-02-02T17:40:42 #kisslinux variable* 2020-02-02T17:41:00 #kisslinux wait, i'm confused. what is the dummy var for? 2020-02-02T17:41:02 #kisslinux mapfile '-c 1 -C func' allows you to execute a function on each line 2020-02-02T17:41:09 #kisslinux ah 2020-02-02T17:41:11 #kisslinux '$1' is line number 2020-02-02T17:41:14 #kisslinux '$2' is the line 2020-02-02T17:42:01 #kisslinux https://termbin.com/0xg2 2020-02-02T17:42:04 #kisslinux That's far simpler 2020-02-02T17:42:11 #kisslinux Turns out only the quotes are needed 2020-02-02T17:44:18 #kisslinux neat, thanks 2020-02-02T17:44:20 #kisslinux i'll try these out 2020-02-02T17:44:47 #kisslinux If you want to hide your eval usage ;) 2020-02-02T17:44:47 #kisslinux https://termbin.com/niu8m 2020-02-02T17:44:57 #kisslinux Can also replace 'source' with '.' 2020-02-02T17:45:01 #kisslinux hah 2020-02-02T17:45:03 #kisslinux yeah 2020-02-02T17:45:23 #kisslinux also, re: http (in PR): you could possibly add a check for it 2020-02-02T17:45:55 #kisslinux Yup 2020-02-02T17:45:59 #kisslinux I'm working on a linter 2020-02-02T17:46:49 #kisslinux ah yes 2020-02-02T17:46:54 #kisslinux nice, that'll be good 2020-02-02T17:47:37 #kisslinux btw dylanaraps, if the build script of a project is a shell script 2020-02-02T17:47:42 #kisslinux and they don't chmod it 2020-02-02T17:47:49 #kisslinux and instead run it as 'sh build_all.sh' 2020-02-02T17:47:55 #kisslinux should i do the same? 2020-02-02T17:48:03 #kisslinux (while packaging) 2020-02-02T17:48:05 #kisslinux that is 2020-02-02T17:48:33 #kisslinux Yeah 2020-02-02T17:48:50 #kisslinux alrighty 2020-02-02T17:51:57 #kisslinux http vs https isn't something I can add to a linter 2020-02-02T17:53:56 #kisslinux There are times when there is no https source at all 2020-02-02T17:53:56 #kisslinux The linter will run on each commit against the entire repository 2020-02-02T17:54:39 #kisslinux The linter is only for really nitpicky stuff regardless 2020-02-02T17:54:47 #kisslinux I don't think it's needed really 2020-02-02T18:17:36 #kisslinux dylanaraps: the package i'm building (nim lang), /generates/ a ~1k loc install.sh script 2020-02-02T18:18:01 #kisslinux wait, i'll just paste it, see for yourself 2020-02-02T18:18:29 #kisslinux https://termbin.com/8ubp 2020-02-02T18:19:15 #kisslinux it takes args like '/usr/bin' or '/usr/local/bin' and installs there 2020-02-02T19:53:41 #kisslinux icyphox: That should be fine with /usr/bin 2020-02-02T19:53:52 #kisslinux (If there is no regular build system) gemini://gemini.ctrl-c.club/~phoebos/logs/freenode-kisslinux-2020-02-02.txt

-- Leo's gemini proxy

-- Connecting to gemini.ctrl-c.club:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/plain; charset=utf-8

-- Response ended

-- Page fetched on Sun Jun 2 10:47:14 2024