From 817a82e3f7da5c4f41c6e7b63ca42da84573fb06 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 11 Jan 2017 23:24:48 +1300 Subject: Unset stupid GNU options to grep(1)/ls(1) --- sh/shrc.d/grep.sh | 3 +++ sh/shrc.d/ls.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sh/shrc.d/grep.sh b/sh/shrc.d/grep.sh index a52b6f90..7b3aea57 100644 --- a/sh/shrc.d/grep.sh +++ b/sh/shrc.d/grep.sh @@ -2,6 +2,9 @@ # options for us; if not, we won't be wrapping grep(1) with a function at all [ -d "$HOME"/.cache/grep ] || return +# Discard GREP_OPTIONS +unset -v GREP_OPTIONS + # Define function proper grep() { diff --git a/sh/shrc.d/ls.sh b/sh/shrc.d/ls.sh index 1aca767e..d1391d40 100644 --- a/sh/shrc.d/ls.sh +++ b/sh/shrc.d/ls.sh @@ -6,6 +6,9 @@ # does, just get rid of it unalias ls >/dev/null 2>&1 +# Discard LS_OPTIONS +unset -v LS_OPTIONS + # Define function proper ls() { -- cgit v1.2.3