3 ms·
Done, done and done. Thank you ! I need a little time to study your 'strict mode' suggestion. I used 'set -e' before but had problems with it. Would you know
by alcover 6y ago
Done, done and done. Thank you !
I need a little time to study your 'strict mode' suggestion.
I used 'set -e' before but had problems with it.
Would you know how I could detect that input is cat'ed into
the script ? ($ cat snippet.c | runc -i). So that I can suppress 'Type your code then CTRL+D'.
- Gaelan 6y ago> Would you know how I could detect that input is cat'ed into the script ? ($ cat snippet.c | runc -i). So that I can suppress 'Type your code then CTRL+D'. Stack Overflow suggests http://stackoverflow.com/questions/10022323/ddg#10022396 http://stackoverflow.com/questions/10022323/ddg#10022396
- alcover 6y agoThank you so much, this is neat.
- city41 6y agoI think this line should use mktemp as well, to be a tad more safe: https://github.com/alcover/runc/blob/master/runc#L109 https://github.com/alcover/runc/blob/master/runc#L109