+Prevent g$i from system directory overriding customized $i binary
authorshort <>
Thu, 15 Apr 2004 09:39:27 +0000 (09:39 +0000)
committershort <>
Thu, 15 Apr 2004 09:39:27 +0000 (09:39 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index dfc45d5..54395c5 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -90,6 +90,8 @@ unset _perldir
 unset -f _bash_profile_addpath
 
 for i in tar ls find cp mv ln md5sum du grep ar chown chmod tail;do
+       # Prevent g$i from system directory overriding customized $i binary
+       which $i 2>/dev/null | grep /net/jsc-nfs.czech.sun.com/export/jscqa-local/ >/dev/null && continue
        which g$i 2>/dev/null | grep '^/' >/dev/null && alias $i=g$i
        done