Index: /zzuf/trunk/test/testsuite.sh
===================================================================
--- /zzuf/trunk/test/testsuite.sh	(revision 2530)
+++ /zzuf/trunk/test/testsuite.sh	(revision 2531)
@@ -44,5 +44,5 @@
         ZZOPTS="-s $seed -r $r"
         case $file in
-          *text*) ZZOPTS="$ZZOPTS -P '\n'" ;;
+          *text*) ZZOPTS="$ZZOPTS -P '\\n' -R '\\000'" ;;
         esac
         echo "*** file $file, ratio $r ***"
@@ -76,5 +76,7 @@
             check "$ZZOPTS" "tail -n 9999 $file" "tail -n 9999"
             check "$ZZOPTS" "tail -n +1 $file" "tail -n +1"
-            check "$ZZOPTS" "grep -a '' $file" "grep -a ''"
+            if grep -a '' /dev/null >/dev/null 2>&1; then
+                check "$ZZOPTS" "grep -a '' $file" "grep -a ''"
+            fi
             check "$ZZOPTS" "sed -e n $file" "sed -e n"
             #check "$ZZOPTS" "cut -b1- $file" "cut -b1-"
@@ -82,5 +84,7 @@
             check "$ZZOPTS" "-i tail -n 9999 < $file" "|tail -n 9999"
             check "$ZZOPTS" "-i tail -n +1 < $file" "|tail -n +1"
-            check "$ZZOPTS" "-i grep -a '' < $file" "|grep -a ''"
+            if grep -a '' /dev/null >/dev/null 2>&1; then
+                check "$ZZOPTS" "-i grep -a '' < $file" "|grep -a ''"
+            fi
             check "$ZZOPTS" "-i sed -e n < $file" "|sed -e n"
             #check "$ZZOPTS" "-i cut -b1- < $file" "|cut -b1-"
