Created
January 20, 2018 15:57
-
-
Save v6ak/81dcab48400d24ea636f630a6a693b76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# safety settings | |
set -u | |
set -e | |
set -o pipefail | |
echo running a new VM… | |
cat recursion.sh | qvm-run '$dispvm' 'cat > recursion.sh; chmod +x recursion.sh; ./recursion.sh' | |
echo $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ./recursion.sh | nl | |
1 running a new VM… | |
2 running a new VM… | |
3 running a new VM… | |
4 running a new VM… | |
5 running a new VM… | |
6 running a new VM… | |
7 running a new VM… | |
8 running a new VM… | |
9 running a new VM… | |
10 running a new VM… | |
11 running a new VM… | |
12 running a new VM… | |
13 0 | |
14 0 | |
15 0 | |
16 0 | |
17 0 | |
18 0 | |
19 0 | |
20 0 | |
21 0 | |
22 0 | |
23 0 | |
24 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment