summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Test/comptest3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a36ae6bf..13e7c7b9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-17 Bart Schaefer <schaefer@zsh.org>
+
+ * Felix Rosencrantz: 11450: Replace `tr` with paramsubst.
+
2000-05-17 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* pws; 11448: Doc/Zsh/compsys.yo, Doc/Zsh/metafaq.yo: more
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