#!/bin/bash cd $(dirname $0) printf "foo\nbar\nbaz" | exec newt test.newt "$@"