|
From: | Peter Teeson |
Subject: | [Bug-apl] TERM env var not getting set |
Date: | Wed, 21 May 2014 15:59:33 -0400 |
Using Mac OS X 10.8 and the Apple Xcode 5.1.1 development IDE The first few lines in main are: int main(int argc, const char * _argv[]) { { // make curses happy // const char * term = getenv("TERM"); if (term == 0 || *term == 0) setenv("TERM", "dumb", 1); } bool log_startup = false; Normally I pass the environment variable TERM=xterm-256color when launching APL. As a test I did not pass anything for TERM. (part of an anomaly I'm trying to debug) So I set a breakpoint on the first statement. The debugger, lldb, shows that the term var had been initialized to NULL. After the call to getenv() the PC was positioned at the log_startup line. IOW the if statement was skipped and so the setenv() never happened. I remain confused. respect….. Peter |
[Prev in Thread] | Current Thread | [Next in Thread] |