mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-02 08:51:18 +02:00
Felix Rosencrantz: 11450: Replace tr
with paramsubst.
This commit is contained in:
parent
53f2284045
commit
3ce575b0f9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user