Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
padding in vt100 causes 'make check' to hang on FreeBSD
- X-seq: zsh-workers 32127
- From: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: padding in vt100 causes 'make check' to hang on FreeBSD
- Date: Tue, 17 Dec 2013 00:36:54 +0900
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
On FreeBSD, 'make check' hangs at X02zlevi.ztst (and other tests which use
comptest). The hang is at line 96 of comptest (in comptesteval()):
95: zpty -w zsh ". $tmp"
96: zpty -r -m zsh log_eval "*<PROMPT>*" || {
The actual problem is in the contents of the file $tmp (i.e., "$@"
of comptesteval()), in particular line 37:
37: TERM=vt100
Various capabilities of vt100 contain the ancient "padding", and FreeBSD's
slave side tputs() actually sends 'null bytes' as paddings before sending
the <PROMPT>. But the zsh on the master side just considers the 'null byte'
as the end of C-string, and the line 96 never returns.
If I change the line 37 to
37: TERM=xterm
then 'make check' doesn't hang and ends without failure (xterm doesn't
contain any padding, of course).
Is it OK to replace vt100 with xterm?
I guess xterm is 'almost' as portable as vt100, but not 100% sure.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author