From ba838feae98ad0e3a403429422bad3f6fa4367cc Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 20 Feb 2018 01:36:02 -0800 Subject: 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. --- subx/build_and_test_until | 1 + subx/clean | 1 + subx/subx | 1 + 3 files changed, 3 insertions(+) (limited to 'subx') 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 "$@" -- cgit 1.4.1-2-gfad0