summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-misc/until1.tests
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-06 18:08:35 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-06 18:08:35 +0000
commitcd418a26700629ad3f240ef6fd2e351ec0c2f87e (patch)
tree5964e28502c10867fdb76037b9879950c300ee3b /shell/hush_test/hush-misc/until1.tests
parent8f8d013afc3ec24056f2180ec38e469615632094 (diff)
hush: fix a bunch of obscure while/until/continue bugs
function old new delta run_list 1159 1214 +55 done_pipe 106 123 +17 done_command 86 98 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 84/0) Total: 84 bytes
Diffstat (limited to 'shell/hush_test/hush-misc/until1.tests')
-rw-r--r--shell/hush_test/hush-misc/until1.tests11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/until1.tests b/shell/hush_test/hush-misc/until1.tests
new file mode 100644
index 000000000..10ab28381
--- /dev/null
+++ b/shell/hush_test/hush-misc/until1.tests
@@ -0,0 +1,11 @@
+x=1
+until test "$x" = 4; do echo $x; x=4; done
+
+# We had a bug in multi-line form
+x=1
+until test "$x" = 4; do
+ echo $x
+ x=4
+done
+
+echo Ok:$?