💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2022-10-02.txt captured on 2024-05-10 at 14:09:47.
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
[2022-10-02T03:00:31Z] <wael[m]> Hi [2022-10-02T04:49:46Z] <testuser[m]> Hi [2022-10-02T13:19:14Z] <testuser[m]> phoebos: [2022-10-02T13:19:38Z] <testuser[m]> why does this work https://termbin.com/tgsh [2022-10-02T13:19:41Z] <testuser[m]> but not this https://termbin.com/m57h [2022-10-02T13:28:08Z] <wael[m]> https://termbin.com/elf71 [2022-10-02T13:30:15Z] <testuser[m]> the problem happens when u short circuit the outermost subshell [2022-10-02T13:31:38Z] <wael[m]> i believe it happens since there is `||` at the end of the recent subshell the outermost subshell's error is ignored [2022-10-02T13:32:02Z] <wael[m]> since `-e` flag is set [2022-10-02T13:32:18Z] <testuser[m]> but the code after || doesnt even get executed [2022-10-02T13:32:23Z] <testuser[m]> for some reason [2022-10-02T13:32:25Z] <testuser[m]> it should [2022-10-02T13:32:45Z] <wael[m]> https://termbin.com/m57h ? [2022-10-02T13:33:05Z] <testuser[m]> exit 1 isnt executed [2022-10-02T13:33:29Z] <wael[m]> because it exits on error without an error handler [2022-10-02T13:33:46Z] <testuser[m]> it doesnt cuz the lowermost unreachable is printed [2022-10-02T13:35:25Z] <testuser[m]> https://termbin.com/whlm [2022-10-02T13:35:26Z] <testuser[m]> see [2022-10-02T13:35:29Z] <testuser[m]> this is with set -eu [2022-10-02T13:36:08Z] <wael[m]> the last command in the list hasnt returned with non-zero [2022-10-02T13:36:13Z] <wael[m]> so its seen as 'non-error' since its subshell [2022-10-02T13:36:26Z] <testuser[m]> hmmmmmmmm [2022-10-02T13:36:32Z] <testuser[m]> WTF [2022-10-02T13:37:46Z] <testuser[m]> WTF [2022-10-02T13:37:54Z] <wael[m]> ? [2022-10-02T13:38:44Z] <testuser[m]> nothing [2022-10-02T13:38:51Z] <testuser[m]> the behaviour doesntmake sense [2022-10-02T13:38:54Z] <testuser[m]> but its true [2022-10-02T13:39:00Z] <wael[m]> try it with symbol { } [2022-10-02T13:39:16Z] <phoebos> set -e and || don't play well together [2022-10-02T13:39:27Z] <phoebos> https://unix.stackexchange.com/questions/65532/why-does-set-e-not-work-inside-subshells-with-parenthesis-followed-by-an-or/65564#65564 [2022-10-02T13:39:33Z] <phoebos> i don't understand it tbh [2022-10-02T13:39:55Z] <testuser[m]> SO BAD [2022-10-02T13:40:15Z] <wael[m]> wtf [2022-10-02T13:40:27Z] <wael[m]> last time i seen shell scripting be confusing is when i got seg fault [2022-10-02T13:41:14Z] <testuser[m]> well i just added || return $? after all the sub-subshells [2022-10-02T13:41:16Z] <testuser[m]> seems to work [2022-10-02T13:41:22Z] <phoebos> i'm not sure why the exit doesn't run but the false doesn't cause it to exit because it's in an AND-OR list [2022-10-02T13:41:53Z] <phoebos> ie. a command failing is always permitted in that context [2022-10-02T13:47:23Z] <phoebos> so the false is permitted [2022-10-02T13:47:31Z] <phoebos> then the second echo is run [2022-10-02T13:47:54Z] <phoebos> which is successful, so the exit 1 doesn't run [2022-10-02T13:48:10Z] <phoebos> get rid of echo unreachable and exit 1 runs [2022-10-02T17:08:07Z] <illiliti> hi [2022-10-02T17:08:13Z] <illiliti> i just recovered from covid19 [2022-10-02T17:08:21Z] <wael[m]> HI ILLILITI [2022-10-02T17:08:28Z] <wael[m]> YAY [2022-10-02T17:09:06Z] <illiliti> took a week with a 40 degree fever [2022-10-02T17:09:36Z] <testuser[m]> illiliti: hi [2022-10-02T17:09:40Z] <illiliti> still feel bad, but better than 2 days ago [2022-10-02T17:09:54Z] <illiliti> hi [2022-10-02T17:10:24Z] <testuser[m]> Good to see you back [2022-10-02T17:16:11Z] <wael[m]> yes [2022-10-02T17:17:40Z] <midfavila> yeah covid isn't great [2022-10-02T17:17:48Z] <midfavila> i got it a while back [2022-10-02T17:17:59Z] <midfavila> suspect my housemates brought it back, considering I avoid going out as much as possible [2022-10-02T17:31:14Z] <testuser[m]> illiliti is the draft situation gonna get any better [2022-10-02T17:32:57Z] <illiliti> muon? [2022-10-02T17:33:08Z] <illiliti> i'm a bit overwhelmed by amount of shit i need to do, so i'll proceeded slowly [2022-10-02T17:33:08Z] <testuser[m]> i mean war draft [2022-10-02T17:33:20Z] <testuser[m]> not muon lol [2022-10-02T17:33:34Z] <illiliti> link? [2022-10-02T17:34:59Z] <testuser[m]> > On Sept. 21, Russia's President Vladimir Putin announced 300,000 men would be drafted to fight in his invasion of Ukraine [2022-10-02T17:35:01Z] <testuser[m]> I mean this one [2022-10-02T17:35:20Z] <illiliti> ah [2022-10-02T17:35:25Z] <illiliti> no i don't think so [2022-10-02T17:35:32Z] <illiliti> it will only get worse [2022-10-02T17:36:02Z] <illiliti> cuz putin is losing war [2022-10-02T17:36:43Z] <testuser[m]> Sounds crazy to hear such shit happening in this day and age [2022-10-02T17:37:37Z] <illiliti> very much expected shit in dictatorship [2022-10-02T17:37:47Z] <illiliti> where people have no power at all [2022-10-02T17:38:36Z] <illiliti> no elections, no protests, no law [2022-10-02T17:38:44Z] <illiliti> nothing [2022-10-02T17:38:51Z] <illiliti> nothing is working [2022-10-02T17:39:36Z] <illiliti> only precise airstrike at putin's head will work [2022-10-02T18:01:18Z] <illiliti> i think it's safe to say that this country is a fail state [2022-10-02T18:01:28Z] <illiliti> always have been tbh [2022-10-02T18:05:24Z] <illiliti> can you imagine that people here get imprisoned for criticizing the goverment, putin, everything [2022-10-02T18:05:39Z] <wael[m]> are you unable to move? [2022-10-02T18:05:52Z] <illiliti> and then tortured in that prison [2022-10-02T18:05:54Z] <illiliti> yep [2022-10-02T18:05:59Z] <illiliti> i am [2022-10-02T18:06:05Z] <wael[m]> why is that [2022-10-02T18:06:11Z] <illiliti> i have reasons [2022-10-02T20:21:54Z] <sad_plan> o/