shithub: riscv

Download patch

ref: 59b31cccdb62f0fd0949984d67900fc344376298
parent: 60befe7df166ae7464c665394ba3793d9d26e184
author: glenda <[email protected]>
date: Tue Feb 27 05:08:23 EST 2018

g: revert accidental change, document missing file type

--- a/rc/bin/g
+++ b/rc/bin/g
@@ -14,7 +14,7 @@
          exit usage 
 case 1 
          pattern=$1 
-         files=(`{ls *.[bcChlmsy] *.ml[iyl] *.ml *.asm *.awk *.cc *.cgi *.cpp *.cs *.go *.goc *.java *.lx *.ms *.pl *.py *.rc *.tex *.xy >[2]/dev/null}) 
+         files=(`{ls *.[bcChlmsy] *.asm *.awk *.cc *.cgi *.cpp *.cs *.go *.goc *.java *.lx *.ms *.pl *.py *.rc *.tex *.xy >[2]/dev/null}) 
 case * 
          pattern=$1 
          shift 
--- a/sys/man/1/grep
+++ b/sys/man/1/grep
@@ -117,7 +117,7 @@
 .B *.b *.c *.C *.h *.l *.m *.s *.y
 .B *.asm *.cc *.cs *.lx *.cgi *.pl
 .B *.py *.tex *.ms *.java *.xy *.go
-.B *.goc
+.B *.goc *.cpp
 .SH SOURCE
 .B /sys/src/cmd/grep
 .br