4040
4141 - name : prep
4242 run : |
43- apt-get update && apt-get --yes install unzip bash libatomic1
43+ apt-get update && apt-get --yes install bash libatomic1
4444 chmod u+x /usr/local/bin/tea
4545
4646 - run : |
@@ -107,6 +107,13 @@ jobs:
107107 eval "$(tea --shellcode)"
108108 test $(foo) = hi
109109
110+ - name : POSIXLY_CORRECT
111+ run : |
112+ eval "$(tea --shellcode)"
113+ tea +duf
114+ duf --version
115+ shell : bash -eo posix {0}
116+
110117 zsh :
111118 needs : compile
112119 runs-on : ubuntu-latest
@@ -122,7 +129,7 @@ jobs:
122129
123130 - name : prep
124131 run : |
125- apt-get update && apt-get --yes install unzip zsh libatomic1
132+ apt-get update && apt-get --yes install zsh libatomic1
126133 chmod u+x /usr/local/bin/tea
127134 shell : sh # ∵ cannot be zsh until zsh is installed
128135
@@ -205,6 +212,13 @@ jobs:
205212 eval "$(tea --shellcode)"
206213 test $(foo) = hi
207214
215+ - name : emulate -L sh
216+ run : |
217+ emulate -L sh
218+ eval "$(tea --shellcode)"
219+ tea +duf
220+ duf --version
221+
208222 POSIX :
209223 needs : compile
210224 runs-on : ubuntu-latest
@@ -217,7 +231,7 @@ jobs:
217231
218232 - name : prep
219233 run : |
220- apt-get update && apt-get --yes install unzip libatomic1
234+ apt-get update && apt-get --yes install libatomic1
221235 chmod u+x /usr/local/bin/tea
222236
223237 # NOTE matrix does not work for the shell key :-/
@@ -247,6 +261,15 @@ jobs:
247261 exit 3
248262 fi
249263
264+ # verifies our assumption that we are running in “POSIX mode”
265+ - name : tea@latest fails
266+ run : |
267+ eval "$(tea --shellcode)"
268+
269+ if tea@latest --version; then
270+ exit 1
271+ fi
272+
250273 - name : test `dev` shellcode
251274 run : |
252275 eval "$(tea --shellcode)"
0 commit comments