#!/bin/sh # # This -*- sh -*- script tests whether 'guild compile' leaves traces # behind it upon SIGINT. source="t-guild-compile-$$" target="$source.go" trap 'rm -f "$source" "$target"' EXIT cat > "$source"<&2 rm "$target"* kill "$pid" exit 1 fi done if test -f "$target" then echo "error: '$target' produced" >&2 exit 1 fi