💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2019-10-24.txt captured on 2023-01-29 at 04:06:17.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2019-10-24T00:16:47 #kisslinux <konimex> may be both 2019-10-24T00:17:59 #kisslinux <konimex> if ethernet usually you only need to enable the kernel module (either built-in or module can work), but wifi if you have proprietary firmware you'd need it to be compiled as module and modprobe it manually 2019-10-24T00:38:07 #kisslinux <absolem> I didnt compile loadable modules into the kernel.... fresh start it is. 2019-10-24T00:38:47 #kisslinux <absolem> Boy, do i feel dumb. 2019-10-24T00:40:08 #kisslinux <absolem> konimex: thank you for the pointers 2019-10-24T01:11:24 #kisslinux <nestman> to the shell masters : what's the difference between `${VAR##PATTERN}` and `${VAR#PATTERN}`? 2019-10-24T01:12:20 #kisslinux <nestman> i can't understand the man page 2019-10-24T01:13:37 #kisslinux <nestman> and i can't tell their differences because testing them returns the same values 2019-10-24T01:14:01 #kisslinux <nestman> same with `%` and `%%` 2019-10-24T02:32:18 #kisslinux <Crestwave> nestman: One symbol strips the shortest match, and two strips the longest match 2019-10-24T02:37:24 #kisslinux <nestman> Crestwave: Yes, that I can't understand. Can you provide some examples? 2019-10-24T02:38:53 #kisslinux <Crestwave> var=a/b/c; echo "${var%/*}"; echo "${var%%/*}" 2019-10-24T02:39:09 #kisslinux <Crestwave> var=asdf; echo "${var#*}"; echo "${var##*}" 2019-10-24T02:43:12 #kisslinux <nestman> why didn't "${var#*}" remove anything? 2019-10-24T02:43:16 #kisslinux <nestman> from asdf 2019-10-24T02:44:40 #kisslinux <Crestwave> Because the shortest match is nothing 2019-10-24T02:45:30 #kisslinux <Crestwave> * matches anything, including null 2019-10-24T02:46:24 #kisslinux <nestman> doesn't that mean it should match 'a'? 2019-10-24T02:46:31 #kisslinux <nestman> lol im so confused 2019-10-24T02:48:42 #kisslinux <Crestwave> No 2019-10-24T02:48:53 #kisslinux <Crestwave> Matching a would mean that the length of the match is 1 2019-10-24T02:49:04 #kisslinux <Crestwave> Matching null would make the length 0 2019-10-24T03:05:44 #kisslinux <nestman> so ${var#*} just means 'match nothing'? 2019-10-24T03:25:42 #kisslinux <Crestwave> In the end it always just evaluates to $var if that's what you're asking 2019-10-24T03:26:09 #kisslinux <Crestwave> That wasn't really a practical example but a demonstration of how it works, since I already gave a practical example for % 2019-10-24T03:55:59 #kisslinux <Crestwave> Local variables in POSIX sh: https://github.com/Crestwave/snippets/blob/master/local.sh 2019-10-24T07:44:13 #kisslinux <dylanaraps> > Welcome to GitHub Sponsors! 2019-10-24T07:44:31 #kisslinux <dylanaraps> Just need to setup Stripe now. :) 2019-10-24T07:46:31 #kisslinux <nestman> what is that? 2019-10-24T07:48:36 #kisslinux <dylanaraps> https://github.com/sponsors 2019-10-24T07:49:20 #kisslinux <dylanaraps> Basically Patreon but built into GitHub. 2019-10-24T13:51:07 #kisslinux <Crestwave> Aw, apparently my local variable hack relies on UB in POSIX