From 950443a43810b9c12d541cb4b74fb65b7a6bcfde Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 29 Mar 2013 21:52:55 -0400 Subject: makepkg: unset GREP_OPTIONS grep allows options to be set from the environment with GREP_OPTIONS. Many of these options will alter grep's output, breaking makepkg. GREP_OPTIONS=--line-number breaks installed dependency removal, for instance. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 45be8b63..6c898497 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -38,6 +38,8 @@ export TEXTDOMAINDIR='@localedir@' export COMMAND_MODE='legacy' # Ensure CDPATH doesn't screw with our cd calls unset CDPATH +# Ensure GREP_OPTIONS doesn't screw with our grep calls +unset GREP_OPTIONS declare -r makepkg_version='@PACKAGE_VERSION@' declare -r confdir='@sysconfdir@' -- cgit v1.2.3-24-g4f1b