svn commit: r367866 - head/usr.bin/grep

Eugene Grosbein eugen at FreeBSD.org
Fri Nov 20 09:56:46 UTC 2020


Author: eugen
Date: Fri Nov 20 09:56:46 2020
New Revision: 367866
URL: https://svnweb.freebsd.org/changeset/base/367866

Log:
  bzgrep: make flag --no-filename work
  
  PR:		248813
  MFC after:	1 week

Modified:
  head/usr.bin/grep/zgrep.sh

Modified: head/usr.bin/grep/zgrep.sh
==============================================================================
--- head/usr.bin/grep/zgrep.sh	Fri Nov 20 09:05:36 2020	(r367865)
+++ head/usr.bin/grep/zgrep.sh	Fri Nov 20 09:56:46 2020	(r367866)
@@ -90,6 +90,10 @@ do
 	    pattern_found=1
 	    shift
 	    ;;
+	-h|--no-filename)
+	    silent=1
+	    shift
+	    ;;
 	--*)
 	    grep_args="${grep_args} $1"
 	    shift
@@ -118,10 +122,6 @@ do
 	    ;;
 	-)
 	    hyphen=1
-	    shift
-	    ;;
-	-h)
-	    silent=1
 	    shift
 	    ;;
 	-r|-R)


More information about the svn-src-all mailing list