* zcmp.in: Exit with status of 2 (not 1), when writing
--help or --version output fails, to be more like cmp.
#!/bin/sh
# Compare the uncompressed contents of compressed files, byte by byte.
-# Copyright (C) 2007 Free Software Foundation
+# Copyright (C) 2007-2010 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Report bugs to <bug-gzip@gnu.org>."
+st=0
case $1 in
---help) exec echo "$usage";;
---version) exec echo "$version";;
+--help) echo "$usage" || st=2; exit $st;;
+--version) echo "$version" || st=2; exit $st;;
esac
exec zdiff --__cmp "$@"