3 ms·
I tried it out, it works. Personally I'd write something like this in Rust not shell. It's not hard at all, you basically can just ignore the borrow checker bec
by Vecr 2y ago
I tried it out, it works. Personally I'd write something like this in Rust not shell. It's not hard at all, you basically can just ignore the borrow checker because all the program is doing is spawning processes and a bit of text processing.
The main issue with writing it in shell instead is incorrect error handling. I see a case that's a bit sketchy there. For now maybe don't expose wcurl to user/attacker controlled input.
- dgan 2y agoWhy would you bother with such a heavy language, just to wait on a single network event?