#!/usr/bin/env zsh # Simulate a specific example using subx. if [ $# -eq 0 ] then echo "run " exit 1 fi if [[ $1 == 'ex'* ]] then CFLAGS=-g subx run examples/$1 exit $? fi CFLAGS=-g subx run apps/$* exit $?