From 02a3c7292bc73fbf642940dd985b8996756eb1c3 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 9 Jun 2001 17:25:56 +0000 Subject: Avoid echotc in completion tests. --- Test/comptest | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Test/comptest') diff --git a/Test/comptest b/Test/comptest index dea6a850d..d65ea351a 100644 --- a/Test/comptest +++ b/Test/comptest @@ -8,7 +8,6 @@ comptestinit () { zmodload -i zsh/zpty comptest_zsh=${ZSH:-zsh} - termcap_ce="$(echotc ce 2>/dev/null)" while getopts z: opt; do case $opt in @@ -105,7 +104,7 @@ comptest () { log="${log[$mend[1]+1,-1]}" if (( 0 <= $mbegin[2] )); then if [[ $match[2] != TC && $match[3] != \ # ]]; then - print -lr "$match[2]:{${match[3]%$termcap_ce}}" + print -lr "$match[2]:{${match[3]%${(%):-%E}}}" fi elif (( 0 <= $mbegin[4] )); then print -lr "DESCRIPTION:{$match[4]}" -- cgit 1.4.1