1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00

Felix Rosencrantz: 11450: Replace tr with paramsubst.

This commit is contained in:
Bart Schaefer 2000-05-18 03:33:39 +00:00
parent 53f2284045
commit 3ce575b0f9
2 changed files with 5 additions and 2 deletions

@ -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> 2000-05-17 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* pws; 11448: Doc/Zsh/compsys.yo, Doc/Zsh/metafaq.yo: more * pws; 11448: Doc/Zsh/compsys.yo, Doc/Zsh/metafaq.yo: more

@ -107,8 +107,7 @@ comptest () {
elif (( 0 <= $mbegin[5] )); then elif (( 0 <= $mbegin[5] )); then
print -lr "MESSAGE:{$match[5]}" print -lr "MESSAGE:{$match[5]}"
elif (( 0 <= $mbegin[6] )); then elif (( 0 <= $mbegin[6] )); then
result=`echo $match[6] | tr -d '\012\015'` print -lr "COMPADD:{${${match[6]}//[$'\r\n']/}}"
print -lr "COMPADD:{$result}"
fi fi
done done
done done