diff -Naurp memcg_function_test_old.sh memcg_function_test.sh --- memcg_function_test_old.sh 2010-03-22 09:50:56.000000000 +0100 +++ memcg_function_test.sh 2010-03-22 09:52:52.000000000 +0100 @@ -30,7 +30,7 @@ export TCID="memcg_function_test" export TST_TOTAL=38 export TST_COUNT=0 -if [ ! "grep -w memory /proc/cgroups | cut -f4" == "1" ] +if [ "$(grep -w memory /proc/cgroups | cut -f4)" != "1" ] then echo "WARNING:"; echo "Either Kernel does not support for memory resource controller or feature not enabled";