mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
Avoid echotc in completion tests.
This commit is contained in:
parent
fd6be2db0f
commit
02a3c7292b
2 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* 14815: Src/utils.c: actually check the filename of
|
||||
|
|
|
@ -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]}"
|
||||
|
|
Loading…
Reference in a new issue