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