#!/bin/sh while [ "$1" != "" ]; do case $1 in --version) /bin/cat <<'OUTPUT' gpgv (GnuPG) 1.4.22 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. OUTPUT ;; -?*) echo "Unknown option: $1" ;; *) break esac shift done