1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh plantest() { name=$1 env=$2 shift 2 cmdline="$*" echo "-- TEST --" echo $name echo $env echo $cmdline }