From 4b7d907039256127264ffffa192f0d3a2ac67308 Mon Sep 17 00:00:00 2001 From: jkratoch <> Date: Thu, 5 Aug 2010 17:41:30 +0000 Subject: [PATCH] Fix decolorization of grep for F-14. --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 35df518..a2c27a5 100644 --- a/.bashrc +++ b/.bashrc @@ -116,11 +116,12 @@ unalias 2>/dev/null du # -h unalias 2>/dev/null ls # --color=auto unalias 2>/dev/null l. # ls -d .* --color=auto unalias 2>/dev/null ll # ls -l --color=auto +unalias 2>/dev/null grep # grep --color=auto -# Aliases would get processed during the parsing of this script file! +# Prevent processing of aliases during the parsing of this script file by +# `eval': eval ' function grep {(unset grep; ( ulimitme; grep "$@"; ); );} - function ls {(unset ls; ( ls -bF "$@"; ); );} function l { ls -lbF "$@"; } if which vim &>/dev/null;then @@ -237,7 +238,6 @@ for i in "-m 100000" "-d 150000" "-v 200000";do # Prevent: ulimit: -m 100000 -d 150000 -v 200000: invalid number # by forcing our known $IFS value; eval(1) is needed to take $IFS to effect: function ulimitme { IFS=" " eval "ulimit $ULIMITME_OPTS"; } -function grep {(unset grep; ( ulimitme; grep "$@"; ); );} function finame { find . -false ` awk