about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2018-02-20 01:36:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2018-02-20 01:38:15 -0800
commitba838feae98ad0e3a403429422bad3f6fa4367cc (patch)
tree56df29adee7d0394a2cc359e930c36e4f410602c
parentcd1113882450382ebe39db7dd8690812bac1aba7 (diff)
downloadmu-ba838feae98ad0e3a403429422bad3f6fa4367cc.tar.gz
4211
Just ran into first issue from using the portable /bin/sh rather than a
modern shell:
  https://stackoverflow.com/questions/15744421/read-command-doesnt-wait-for-input

Turn on errexit everywhere.
-rwxr-xr-xbuild_and_test_until1
-rwxr-xr-xclean1
-rwxr-xr-xgit_log_filtered1
-rwxr-xr-xlinkify/build1
-rwxr-xr-xlinkify/clean2
-rwxr-xr-xmu1
-rwxr-xr-xsnapshot_lesson1
-rwxr-xr-xsubx/build_and_test_until1
-rwxr-xr-xsubx/clean1
-rwxr-xr-xsubx/subx1
-rwxr-xr-xtest_layers1
11 files changed, 12 insertions, 0 deletions
diff --git a/build_and_test_until b/build_and_test_until
index 3e353885..2220be17 100755
--- a/build_and_test_until
+++ b/build_and_test_until
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 ./clean top-level
 ./build --until $1  &&  ./mu_bin test
diff --git a/clean b/clean
index e9b2eeb9..3b629daa 100755
--- a/clean
+++ b/clean
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 set -v
 rm -rf mu.cc core.mu mu_bin* *_list .build
diff --git a/git_log_filtered b/git_log_filtered
index b17cd3bf..7ab6d43e 100755
--- a/git_log_filtered
+++ b/git_log_filtered
@@ -4,5 +4,6 @@
 # I usually run this through an alias local to this repo:
 #   $ git config alias.ll '!./git_log_filtered'
 #   $ git ll --stat
+set -e
 
 git log $* -- . ":(exclude)html"
diff --git a/linkify/build b/linkify/build
index 54c3f459..3c96ad00 100755
--- a/linkify/build
+++ b/linkify/build
@@ -1,3 +1,4 @@
 #!/bin/sh
+set -e
 
 c++ -g linkify.cc -o linkify
diff --git a/linkify/clean b/linkify/clean
index 7838b78a..3feef907 100755
--- a/linkify/clean
+++ b/linkify/clean
@@ -1,2 +1,4 @@
 #!/bin/sh
+set -e
+
 rm -rf linkify *.dSYM
diff --git a/mu b/mu
index 964816f3..7e3d6be6 100755
--- a/mu
+++ b/mu
@@ -1,5 +1,6 @@
 #!/bin/sh
 # Run interpreter, first compiling if necessary.
+set -e
 
 ./build  &&  ./mu_bin "$@"
 
diff --git a/snapshot_lesson b/snapshot_lesson
index 2a943c37..cd4723c1 100755
--- a/snapshot_lesson
+++ b/snapshot_lesson
@@ -1,6 +1,7 @@
 #!/bin/sh
 # Hacky little helper called from edit/ and sandbox/ apps to save a snapshot
 # of lesson/ using git.
+set -e
 
 test -d lesson/.git || exit 0  # give up if it's not a git repo
 
diff --git a/subx/build_and_test_until b/subx/build_and_test_until
index 25daac2d..874d1254 100755
--- a/subx/build_and_test_until
+++ b/subx/build_and_test_until
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 ./clean top-level  # ignore subsidiary tools like tangle and cleave
 ./build --until $1  &&  ./subx_bin test
diff --git a/subx/clean b/subx/clean
index 5243f243..6ee90a9c 100755
--- a/subx/clean
+++ b/subx/clean
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 set -v
 rm -rf subx.cc subx_bin* *_list
diff --git a/subx/subx b/subx/subx
index 5d7a237c..257e2f13 100755
--- a/subx/subx
+++ b/subx/subx
@@ -1,4 +1,5 @@
 #!/bin/sh
 # Run SubX VM, first compiling if necessary.
+set -e
 
 ./build  &&  ./subx_bin "$@"
diff --git a/test_layers b/test_layers
index 69d9818e..e004b796 100755
--- a/test_layers
+++ b/test_layers
@@ -13,6 +13,7 @@
 #     test_layers x y
 #   Test all layers for a specific app:
 #     test_layers app
+set -e
 
 if [[ $1 == one-off ]]
 then
=6030d7e2e56d445ca67c6a0e8c9cf33e46bc673c'>6030d7e2 ^
33352536 ^
9d27e966 ^
33352536 ^

6030d7e2 ^

33352536 ^



6030d7e2 ^
33352536 ^
261b1b80 ^
33352536 ^

261b1b80 ^
33352536 ^




6030d7e2 ^
33352536 ^
cf02c20b ^
ee9a9237 ^
33352536 ^

7a583220 ^
33352536 ^

6030d7e2 ^
f3612481 ^
71eb22a5 ^
7a583220 ^
33352536 ^

1639687b ^
33352536 ^
6070c23e ^
1639687b ^
33352536 ^

6030d7e2 ^
261b1b80 ^
1639687b ^
6030d7e2 ^
33352536 ^


1639687b ^
33352536 ^
cf02c20b ^
6030d7e2 ^
f3612481 ^

7a583220 ^
33352536 ^
6030d7e2 ^
33352536 ^
6030d7e2 ^
33352536 ^


6030d7e2 ^


71eb22a5 ^
64e8faba ^

33352536 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
9d27e966 ^
ee9a9237 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
33352536 ^
93be389b ^
33352536 ^
6030d7e2 ^
328a8e11 ^
ee9a9237 ^
6030d7e2 ^

9d27e966 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
7a583220 ^
33352536 ^


6030d7e2 ^
f3612481 ^
71eb22a5 ^
7a583220 ^
33352536 ^

6030d7e2 ^
ee9a9237 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
cf02c20b ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^


ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
7a583220 ^
33352536 ^

6030d7e2 ^
f3612481 ^
71eb22a5 ^
7a583220 ^
33352536 ^

9d27e966 ^
ee9a9237 ^
6030d7e2 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
cf02c20b ^
7a583220 ^
33352536 ^

6030d7e2 ^
6ee77ba7 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208