#!/bin/bash jattool() { # # Run jattool safely # ( export PRETTY=plain command jattool "$@" ) } jat__pstartt "jattool" jat__cmd -h "returns two" \ -S 2 -e jattool.err -o jattool.out \ jattool jat__cmd -h "prints nothing to stdout" \ -S 1 \ test -s jattool.out jat__cmd -h "prints something to stderr" \ test -s jattool.err jat__pend