Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 18:57:40 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334965 - head/sys/kern
Message-ID:  <201806111857.w5BIve23025792@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Jun 11 18:57:40 2018
New Revision: 334965
URL: https://svnweb.freebsd.org/changeset/base/334965

Log:
  makesyscalls: simplify capenabled pipeline
  
  Replace cat + 2x grep with one grep.
  
  Sponsored by:	Turing Robotic Industries

Modified:
  head/sys/kern/makesyscalls.sh

Modified: head/sys/kern/makesyscalls.sh
==============================================================================
--- head/sys/kern/makesyscalls.sh	Mon Jun 11 18:44:56 2018	(r334964)
+++ head/sys/kern/makesyscalls.sh	Mon Jun 11 18:57:40 2018	(r334965)
@@ -47,7 +47,7 @@ systracetmp="systrace.$$"
 systraceret="systraceret.$$"
 
 if [ -r capabilities.conf ]; then
-	capenabled=`cat capabilities.conf | grep -v "^#" | grep -v "^$"`
+	capenabled=`egrep -v '^#|^$' capabilities.conf`
 	capenabled=`echo $capenabled | sed 's/ /,/g'`
 else
 	capenabled=""



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806111857.w5BIve23025792>