changeset 751:753b1c2bd64c

match is NOT POSIX
author Jeff Hammel <k0scist@gmail.com>
date Tue, 30 Jun 2015 15:35:34 -0700
parents a4177aacf735
children e6fb1a8fe66b
files .bash_overrides
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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