#!/bin/sh input="$(cat)" case "$input" in -*) echo "nc: bad input: \$input" >&2; exit 1;; esac echo "token-foo"