comparison .bash_overrides @ 751:753b1c2bd64c

match is NOT POSIX
author Jeff Hammel <k0scist@gmail.com>
date Tue, 30 Jun 2015 15:35:34 -0700
parents 047a53a8fbad
children
comparison
equal deleted inserted replaced
750:a4177aacf735 751:753b1c2bd64c
53 fi 53 fi
54 54
55 if [ -n "${ENV}" ] 55 if [ -n "${ENV}" ]
56 then 56 then
57 FULLPWD=$(python -c 'import os; print (os.getcwd())') 57 FULLPWD=$(python -c 'import os; print (os.getcwd())')
58 if (( ! `expr match "${FULLPWD}" "${ENV}"` )) 58 if (( ! `expr "${FULLPWD}" : "${ENV}"` ))
59 then 59 then
60 if [[ -n "`type -t deactivate`" ]] 60 if [[ -n "`type -t deactivate`" ]]
61 then 61 then
62 deactivate 62 deactivate
63 fi 63 fi