From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: koen van hoof <koen.van_hoof@alcatel.be>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: TERMCAP problem.
Date: Mon, 15 Jan 2001 17:23:00 +0000 [thread overview]
Message-ID: <1010115172300.ZM15781@candle.brasslantern.com> (raw)
In-Reply-To: <20010115094653.A2172@dan.emsphone.com>
On Jan 15, 9:46am, Dan Nelson wrote:
} Subject: Re: TERMCAP problem.
}
} In the last episode (Jan 15), koen van hoof said:
} > zsh V3.1.9 and termcap V1.3 on SunOS se9ws265 5.6 Generic_105181-03
} > sun4u sparc
[...]
} > it core dumps, because at a certain moment getenv("TERM")
} > returns 0 and this is fed into a strcmp.
}
} getenv("TERM") should never return 0. screen sets both TERM and
} TERMCAP on all my machines.
But zsh shouldn't dump core when TERM is not set, even so.
Koen, you're going to have to give us more details (if you can) about the
core dump. As far as I can tell, zsh never feeds the result of getenv()
directly to strcmp(). $TERM is handled by params.c:termsetfn(), which
always sets the global char *term to the empty string when $TERM is NULL;
later comparisons on the terminal type always use *term, which should
never be NULL unless ztrdup("") failed (which would indicate a serious
memory allocation problem).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2001-01-15 17:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-15 10:14 koen van hoof
2001-01-15 15:46 ` Dan Nelson
2001-01-15 17:23 ` Bart Schaefer [this message]
2001-01-16 8:30 ` koen van hoof
2001-01-16 8:52 ` Andrej Borsenkow
2001-01-16 10:42 ` koen van hoof
2001-01-16 10:54 ` Peter Stephenson
2001-01-16 11:19 ` Andrej Borsenkow
2001-01-16 11:56 ` koen van hoof
2001-01-16 12:11 ` Andrej Borsenkow
2001-01-16 16:27 ` koen van hoof
2001-01-16 17:05 ` Peter Stephenson
2001-01-17 7:46 ` koen van hoof
2001-01-17 7:53 ` Andrej Borsenkow
2001-01-17 18:41 ` Some general problems with exporting cariables (Was: TERMCAP problem. ) Andrej Borsenkow
2001-01-18 12:34 ` koen van hoof
2001-01-18 13:16 ` Andrej Borsenkow
2001-01-18 15:54 ` koen van hoof
2001-01-19 15:05 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1010115172300.ZM15781@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=koen.van_hoof@alcatel.be \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).