diff .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
line wrap: on
line diff
--- a/.bash_overrides	Tue Jun 30 15:26:27 2015 -0700
+++ b/.bash_overrides	Tue Jun 30 15:35:34 2015 -0700
@@ -55,7 +55,7 @@
     if [ -n "${ENV}" ]
     then
 	FULLPWD=$(python -c 'import os; print (os.getcwd())')
-	if (( ! `expr match "${FULLPWD}" "${ENV}"` ))
+	if (( ! `expr "${FULLPWD}" : "${ENV}"` ))
 	then
 	    if [[ -n "`type -t deactivate`" ]]
 	    then