1,975 karma · joined October 20, 2018
This can evaluate arbitrary code: [[ "${payload}" -eq 42 ]]
Here is one example of a malicious payload:
payload='a[$(touch /tmp/pwned)]'This word is doing a lot of lifting here. You are essentially saying "the world should be better" without even a hint of suggestion of what a minority of countries could do to achieve it (in the presence of adversarial, nuclear states)
In my opinion this is the most practical approach for real world projects. You get benefits like avoiding outdated documentation without huge upfront costs.
A properly customizable distro allows organizing and tracking patches in layers, etc.
I get it, some people dislike the appearance but c'mon, this is HN. If we can use vi(1) on a 80 column terminal, reading an html page is not an impossible task.
Holding a lock/monitor across a yield is a bad idea for other reasons, so it shouldn't be a big deal in practice.
I was curious about the examples but this does not seem promising...
def sort(list: List(T)): List(T) where Ord(T) =
match list do
[] -> []
[pivot | rest] -> sort(rest)
end