pgpewrap 274 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh --

cmd=$1
pfx=""

die() {
	echo "Command line usage: $0 [flags] -- prefix [recipients]" >& 2
	exit 1
}

11
while test $# -gt 0 && shift && test -n "$1" ; do
12 13 14 15 16 17 18 19 20
	if test "$1" = "--" ; then
		shift || die
		pfx="$1"
		shift || die
	fi
	cmd="$cmd $pfx $1"
done

exec $cmd