about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-06-29 21:00:12 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-01 23:09:58 -0700
commit7a276d63c00dd587acce336c378b971e05bef025 (patch)
treeb4bc86c29d266a6f14ca37fe344c9fa5b50b40d1
parent5a917623e13ec75ca27cf263046b0f8fbf27560e (diff)
downloadmu-7a276d63c00dd587acce336c378b971e05bef025.tar.gz
.
-rwxr-xr-xsubx/run_one_test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/subx/run_one_test.sh b/subx/run_one_test.sh
index 2d4c332e..ded3e6e5 100755
--- a/subx/run_one_test.sh
+++ b/subx/run_one_test.sh
@@ -12,6 +12,8 @@ then
 fi
 
 set -e
-CFLAGS=$CFLAGS subx --debug translate `ls [0-9]*.subx apps/subx-common.subx $1 |sort |uniq` /tmp/run_one_test.subx -o /tmp/a.elf
+FILES=$(ls [0-9]*.subx apps/subx-common.subx $1 |sort |uniq)
+                                      # turn newlines into spaces
+CFLAGS=$CFLAGS subx --debug translate $(echo $FILES) /tmp/run_one_test.subx -o /tmp/a.elf
 
 subx --debug --trace run /tmp/a.elf