#!/bin/sh newest_file="$(find ./ -type f -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1)" set -x g++ -O0 -ggdb -Wall -Wextra -Werror $newest_file -o /tmp/out || exit 1 /tmp/out