This diff makes zmore and zless recognise options starting with + so
that commands like "zless +G foo.gz" work.

It makes sense to do this for zmore, too, because the less
implementation of more also supports + options.

cvs server: Diffing compress
Index: compress/zmore
===================================================================
RCS file: /cvs/src/usr.bin/compress/zmore,v
retrieving revision 1.7
diff -u -r1.7 zmore
--- compress/zmore      7 May 2014 21:42:50 -0000       1.7
+++ compress/zmore      9 Apr 2015 06:36:46 -0000
@@ -29,7 +29,7 @@
                        shift
                        break
                        ;;
-               -*)
+               -*|+*)
                        flags="$flags $1"
                        shift
                        ;;

Reply via email to