1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-16 14:41:02 +02:00

Avoid echotc in completion tests.

This commit is contained in:
Bart Schaefer 2001-06-09 17:25:56 +00:00
parent fd6be2db0f
commit 02a3c7292b
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2001-06-09 Bart Schaefer <schaefer@brasslantern.com>
* 14824: Test/comptest: Avoid echotc (improvement on 14792).
2001-06-08 Clint Adams <clint@zsh.org> 2001-06-08 Clint Adams <clint@zsh.org>
* 14815: Src/utils.c: actually check the filename of * 14815: Src/utils.c: actually check the filename of

View file

@ -8,7 +8,6 @@ comptestinit () {
zmodload -i zsh/zpty zmodload -i zsh/zpty
comptest_zsh=${ZSH:-zsh} comptest_zsh=${ZSH:-zsh}
termcap_ce="$(echotc ce 2>/dev/null)"
while getopts z: opt; do while getopts z: opt; do
case $opt in case $opt in
@ -105,7 +104,7 @@ comptest () {
log="${log[$mend[1]+1,-1]}" log="${log[$mend[1]+1,-1]}"
if (( 0 <= $mbegin[2] )); then if (( 0 <= $mbegin[2] )); then
if [[ $match[2] != TC && $match[3] != \ # ]]; then if [[ $match[2] != TC && $match[3] != \ # ]]; then
print -lr "$match[2]:{${match[3]%$termcap_ce}}" print -lr "$match[2]:{${match[3]%${(%):-%E}}}"
fi fi
elif (( 0 <= $mbegin[4] )); then elif (( 0 <= $mbegin[4] )); then
print -lr "DESCRIPTION:{$match[4]}" print -lr "DESCRIPTION:{$match[4]}"