File: 05-grep-wrapper-sh.patch

package info (click to toggle)
grep 3.8-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,024 kB
  • sloc: ansic: 91,157; sh: 12,403; perl: 606; makefile: 391; awk: 71; sed: 16
file content (19 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Removes needless call to bash.

* src/Makefile.am: Specifies /bin/sh as shell, used for egrep and fgrep wrappers. 
#* src/egrep.sh Stops adding the working directory in PATH if a ./grep exists 

Closes: #762427, #762917

Index: grep/src/Makefile.am
===================================================================
--- grep.orig/src/Makefile.am
+++ grep/src/Makefile.am
@@ -15,6 +15,7 @@
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 LN = ln
+SHELL = /bin/sh
 
 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PCRE_CFLAGS)