Conversation
| trap 'echo "got interrupted"' INT | ||
| for i in {1..10} | ||
| do | ||
| echo "sleeping ${'$'}i..." |
There was a problem hiding this comment.
I don't understand this substitution, what is it supposed to do?
There was a problem hiding this comment.
${'$'} is a way to print a literal $ within a multiline string literal """.
Otherwise it'd be $i and there's no Kotlin i here.
There was a problem hiding this comment.
I tested it on Bash and ZSH and in both cases I got "bad substitution" error.
There was a problem hiding this comment.
Try $i in Bash/ZSH. Or run/debug the JUnit test
Here's the Bash version:
trap 'echo "got interrupted"' INT
for i in {1..10}
do
echo "sleeping $i..."
sleep 1
done You can try ctrl-C while it loops
There was a problem hiding this comment.
OMG, brain fog. It' a Kotlin substitution 🤦 . Ignore me :)
There was a problem hiding this comment.
If you want to restore your bash session to normal, you can clear the trap via trap - INT
|
CI is green on my fork. |
844fa06 to
4aeeb76
Compare
|
It got cancelled again. I guess I'll retry later |
No description provided.