Comment by TrianguloY
3 months ago
Exactly, here you are basically keeping it as a while with a condition but allowing it to be any code that at the end returns a boolean, although you need to make sure that variables defined in that block can be used in the do part.
Sidenote: I wasn't aware that shell allows for multiple lines, good to know!
No comments yet
Contribute on Hacker News ↗