diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-18 03:33:39 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-18 03:33:39 +0000 |
| commit | 3ce575b0f9b3930848673eaa2ecc6c6c5c63231d (patch) | |
| tree | 171bde5dcce744d51936d9baff6f5e72a91d9aaa /Test/comptest | |
| parent | 11448: doc changes (diff) | |
| download | zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.gz zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.bz2 zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.lz zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.xz zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.tar.zst zsh-3ce575b0f9b3930848673eaa2ecc6c6c5c63231d.zip | |
Felix Rosencrantz: 11450: Replace `tr` with paramsubst.
Diffstat (limited to 'Test/comptest')
| -rw-r--r-- | Test/comptest | 3 |
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 |
