$NetBSD: patch-src_a2ps-lpr-wrapper,v 1.1 2023/04/15 05:01:48 wiz Exp $ a2ps-lpr-wrapper exits on bogus parameter-count test https://savannah.gnu.org/bugs/?64047 --- src/a2ps-lpr-wrapper.orig 2023-04-12 14:34:45.000000000 +0000 +++ src/a2ps-lpr-wrapper @@ -5,7 +5,7 @@ set -e usage() { - echo "Usage: $(basename "$0") [-d printer] FILE..." >&2 + echo "Usage: $(basename "$0") [-d printer] [FILE...]" >&2 exit 1 } @@ -17,7 +17,6 @@ while getopts d: flag; do esac done shift $((OPTIND - 1)) -if [ $# -eq 0 ]; then usage; fi # If lp (from CUPS) exists, just use it. if command -pv lp > /dev/null; then