From 3ce575b0f9b3930848673eaa2ecc6c6c5c63231d Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 18 May 2000 03:33:39 +0000 Subject: Felix Rosencrantz: 11450: Replace `tr` with paramsubst. --- Test/comptest | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Test/comptest') 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 -- cgit 1.4.1