code logs -> 2021 -> Mon, 21 Jun 2021< code.20210620.log - code.20210622.log >
--- Log opened Mon Jun 21 00:00:00 2021
02:06 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
02:33
<&ToxicFrog>
[R]: volatile pointer initialized with constant memory address can be used for this, yeah.
03:17
<&McMartin>
Yeah, I'm treating "initialized with an integer as the memory address" as the cheaty indirection
03:18
<&McMartin>
Compare POKE, which is a direct absolute-store command with no circumlocution
03:23 Omega [Alek@Nightstar-06ca3p.il.comcast.net] has joined #code
03:23 Alek [Alek@Nightstar-06ca3p.il.comcast.net] has quit [NickServ (RECOVER command used by Omega)]
03:23 Omega is now known as Alek
03:40 Degi [Degi@Nightstar-4koi9v.pool.telefonica.de] has quit [Ping timeout: 121 seconds]
03:47 Degi [Degi@Nightstar-eu2nl0.pool.telefonica.de] has joined #code
05:02 Kindamoody[zZz] is now known as Kindamoody|afk
06:06 gnolam [lenin@Nightstar-j9ajs0.priv.bahnhof.se] has joined #code
06:06 mode/#code [+o gnolam] by ChanServ
06:26 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
06:26 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
11:10 JustBob [justbob@Nightstar.Customer.Dissatisfaction.Administrator] has quit [Connection closed]
11:10 JustBob [justbob@ServerAdministrator.Nightstar.Net] has joined #code
11:10 mode/#code [+o JustBob] by ChanServ
11:35 abudhabi_ [abudhabi@Nightstar-g6rnns.adsl.tpnet.pl] has joined #code
11:38 abudhabi [abudhabi@Nightstar-dcq1u3.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
15:00 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:00 mode/#code [+qo Vornicus Vornicus] by ChanServ
17:05 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:47
<@sshine>
why is there a difference between 'for e in "foo\nbar"; do echo "got: $e"; done' and 'for e in $(echo -e "foo\nbar"); do echo "got: $e"; done'
17:48
<@sshine>
both cases span two lines, but in the former I only get one 'got: ', and in the latter I get two.
17:48
<&[R]>
Because $() splits on IFS
17:48
<&[R]>
This is one of the reasons I switch to xs for shell scripting
17:49
<&[R]>
Also in the first one, you never -e the \n
17:49
<&[R]>
$ for e in "$(echo -e "foo\nbar")"; do echo "got: $e"; done
17:49
<&[R]>
got: foo
17:49
<&[R]>
bar
17:51
<&[R]>
https://termbin.com/0m49 <-- further examples (and I had the root shell open already)
17:59
<&[R]>
sshine: does that explain it for you?
18:00
<&[R]>
($IFS is Input Field Separator)
18:02
<@sshine>
[R], ehm, almost... thanks for giving better examples. I understand that $(echo -e "foo\nbar") is two things and that "$(echo -e "foo\nbar")" is one thing, and that IFS is the special variable that determines when to split something into many things when there aren't quotes that explicitly turns them into one thing.
18:04
<&[R]>
Also your first bit of code didn't span two lines, it spanned one
18:04
<&[R]>
What questions did you still have?
18:05
<@sshine>
[R], no, I think I'm good.. just needed to parrot it back. :-D
18:05
<&[R]>
Fair enough, glad to hel
18:05
<&[R]>
help*
18:08 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
18:28
<@sshine>
I'm in charge of building the new CI/CD pipeline at work.
18:29
<@sshine>
right now we're copying the old pipeline's design: we create a pull request that merges something onto a branch called 'release/production', and that triggers some deploy commands.
18:30
<@sshine>
what sucks about this is that the HEAD of 'release/production' is always ahead of at least the merge commit, at best, and at worst, people merge over trash that just accumulates and diverges from the main branch.
18:31
<@sshine>
I've looked at ArgoCD for moving some of the deployment responsibility out of GitHub Actions, but it doesn't really change the part of the legacy design with the dedicated 'release/production' branch.
18:32
<@sshine>
the other teams at work use git tags, and manually trigger a deployment of a particular tag. we don't want to copy the manual part, and I don't know if it's possible to do a pull request that contains a tag that then gets committed to the main branch?
18:33
<@sshine>
right, PRs don't contain tags.
18:33
<@sshine>
what's an easy way to signify that something is to be released without specifying this using the merge destination?
22:59 Kindamoody|afk is now known as Kindamoody
23:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
23:47 Kindamoody is now known as Kindamoody[zZz]
23:56 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
--- Log closed Tue Jun 22 00:00:02 2021
code logs -> 2021 -> Mon, 21 Jun 2021< code.20210620.log - code.20210622.log >

[ Latest log file ]