1#!/bin/bash 2# -*-sh-*- 3if gcc -o a.out $1 &> cmp_out; then 4 if ! ./a.out &> run_out; then 5 exit 0; # Success. 6 fi 7fi 8exit 1; # Failure. 9