about summary refs log tree commit diff
path: root/Test/comptest
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-05-18 03:33:39 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-05-18 03:33:39 +0000
commit3ce575b0f9b3930848673eaa2ecc6c6c5c63231d (patch)
tree171bde5dcce744d51936d9baff6f5e72a91d9aaa /Test/comptest
parent53f2284045d0473437b50afb2ff8b0aed0e5a1df (diff)
downloadzsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.gz
zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.xz
zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.zip
Felix Rosencrantz: 11450: Replace `tr` with paramsubst.
Diffstat (limited to 'Test/comptest')
-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