4 ms·
This looks cool, though running e.g. arbitrary ruby scripts seems kinda dangerous when it executes on every character instead of only when you ask it to.
by eridius 7y ago
This looks cool, though running e.g. arbitrary ruby scripts seems kinda dangerous when it executes on every character instead of only when you ask it to.
- colordrops 7y agoAnd many other things besides Ruby scripts
- pawelduda 7y agoMy exact concern with this. For now I can only recommend using it with read-only commands and not pasting anything into it that you do not fully understand. Probably will add some security check to prevent user from running destructive commands at some point.
- akavel 7y ago<shameless-plug> You may also like to have a look at https://github.com/akavel/up https://github.com/akavel/up as an alternative. It now executes the command only after Enter is pressed (though originally I also went with execution on every keypress). By default it runs shell commands/pipelines, but you can change the contents of SHELL env. variable to write raw ruby, awk, or else.