about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/comptest3
1 files changed, 1 insertions, 2 deletions
diff --git a/Test/comptest b/Test/comptest
index 0b6962d6e..167b1a367 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -107,8 +107,7 @@ comptest () {
       elif (( 0 <= $mbegin[5] )); then
 	print -lr "MESSAGE:{$match[5]}"
       elif (( 0 <= $mbegin[6] )); then
-        result=`echo $match[6] | tr -d '\012\015'`
-        print -lr "COMPADD:{$result}"
+        print -lr "COMPADD:{${${match[6]}//[$'\r\n']/}}"
       fi
     done
   done