#!/usr/bin/env zsh# Run commonly-used SubX programs using the SubX VM in 'debug mode'.if[$#-eq0]thenecho"drun <binary> <args>"exit1fiif[[$1=='ex'*]]thenCFLAGS=-g./subx--map--dumprunexamples/$*2>x
exit$?fiCFLAGS=-g./subx--map--dumprunapps/$*2>x
exit$?