Why would copying two strings to the clipboard lead to an infinite loop?
(`pbpaste | sh - | pbpaste | sh - | pbpaste | sh - | ... | pbpaste | sh -`)
pbpaste | sh -
Means it's taking whatever is in my clipboard and executing it.I had replaced what I wanted to execute with just "pbpaste | sh -"
So it passed "pbpaste | sh -" to the sh to run. Which would have then taken "pbpaste | sh -" and passed it to sh to run, which ...
pbpaste | sh - | sh - ...