]> granicus.if.org Git - mutt/commitdiff
Portability patch to make pgpewrap work under HP/UX. From David
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 9 Feb 2000 07:44:29 +0000 (07:44 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 9 Feb 2000 07:44:29 +0000 (07:44 +0000)
Ellement <ellement@sdd.hp.com>.

pgpewrap

index bc1a8e0ed90826d58f8d74dfd3bb8b9a6282f563..37f9facd5d987609ef3a45c69758c7c989f9d51b 100755 (executable)
--- a/pgpewrap
+++ b/pgpewrap
@@ -8,7 +8,7 @@ die() {
        exit 1
 }
 
-while shift 2> /dev/null && test -n "$1" ; do
+while test $# -gt 0 && shift && test -n "$1" ; do
        if test "$1" = "--" ; then
                shift || die
                pfx="$1"