gchristensen changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/ https://meet.jit.si/NixOpsReview
<abathur> after finding an issue on the hugoThemes repo about how many hugo themes broke in version 57 when they made a breaking change, and observing this real gem: "Perhaps we should communicate this breaking change through Hugo's official twitter account?", I (appear) to have only needed like 8 fairly small edits to jump from 0.37.1 to 0.73.0
<abathur> for those keeping score at home, the words "break" and "breaking" do not appear in hugo's 0.57.0 release notes
<gchristensen> :O
<abathur> and the documentation of the actual API breaking change at mention here is in a section titled "Notes"
<gchristensen> :)
<abathur> I like hugo, but I swear to god if they don't eventually go 1.0 and start properly telegraphing breaking versions
* gchristensen pets jekyll
<abathur> I *will* replace them with bash and post about "How I replaced a static site generator with over 45000 stars on github with bash alias" or something stupid
<gchristensen> :D
<abathur> oh hehe
<abathur> hopefully I never have to address anything I just did there in resholved
<gchristensen> just what the hell is going on here
<abathur> indeed
<gchristensen> honestly I don't get it wtf is going on here haha
<gchristensen> good grief!
<abathur> yeah so aliases are expanded at read time
<abathur> they can literally rewrite the bash syntax
<abathur> so the {} characters that have lingual meaning as keywords can be overridden
<gchristensen> you're in too deep
<abathur> hehe
<abathur> well
<abathur> if I'm honest this is more about my odd little curiosity about low-overhead DSLish things, if that makes sense?
<gchristensen> yeah
<abathur> I've got this weird little sensation that bash is just aaaalmost good for a really quick and dirty DSL that doesn't need a lot of weight
<abathur> I stumbled into something interesting while I was doing the bats test suite for resholved that kinda reignited that sensation
<abathur> the @test "case description" stuff is bats
<abathur> but the require thing was just me fumbling for a way to make expressive tests in shell that weren't full of illegible [[ ]] tests
<gchristensen> ooooh
<abathur> so those little functions are echoing stuff that gets read in and parsed/handled by require https://github.com/abathur/resholved/blob/master/tests/helpers.bash#L128-L134
<gchristensen> [grahamc@Petunia:~]$ alias '«'='"' '»'='"'
<gchristensen> [grahamc@Petunia:~]$ printf «hello there»
<gchristensen> «hello
<gchristensen> hmm
<abathur> well
<abathur> so there's One Weird Trick
<abathur> normally aliases only expand first word
<abathur> but if you put a space at the inside of the end of the quote
<abathur> it'll also try to alias-expand the next word
<DigitalKiwi> <3 hakyll
<abathur> though I'm not certain if it'll do expansion in a contiguous word like that
<abathur> I think you'll see another problem with that quote one though; I tried something similar with the json and did have to give up and use cat to hack it
<abathur> which is roughly that bash seems to want to be able to find a close character as soon as it finds the open one
<abathur> and it doesn't appear to expand any new aliases before finding it
<abathur> unfortunately that blunts the chaos/hilarity that can ensue a bit :(
<gchristensen> :D
<gchristensen> PROCEDURE foo .
<gchristensen> DISPLAY hi
<gchristensen> STOP RUN.
<gchristensen> PROCEDURE foo .
<gchristensen> DISPLAY hi
<gchristensen> STOP RUN.
<gchristensen> alias PROCEDURE=function .="() {" "STOP"="}" "RUN."="" DISPLAY="echo"
johnny101m2 has quit [Quit: -a- Connection Timed Out]
johnny101m has joined #nixops
<abathur> :]
cole-h has quit [Quit: Goodbye]
ixxie has joined #nixops
<ixxie> DigitalKiwi: yooo
<ixxie> are you here?
mananamenos has quit [Remote host closed the connection]
ixxie has quit [Quit: Lost terminal]
cole-h has joined #nixops
meh` has joined #nixops
johnny101m has quit [Read error: Connection reset by peer]
meh` has quit [Ping timeout: 265 seconds]
meh` has joined #nixops
johnny101m has joined #nixops
pbb has quit [Quit: No Ping reply in 210 seconds.]
pbb has joined #nixops
meh` has quit [Ping timeout: 272 seconds]