This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash-3.2.5-7: COLUMNS and LINES variables are not set


Mark Edgar <mark.edgar <at> gcmail.maricopa.edu> writes:

> 
> It seems that bash for Cygwin does not set the COLUMNS and LINES shell 
> variables, neither at startup nor when WINCH is delivered.  Defining 
> TIOCGWINSZ by including <termios.h> in lib/sh/winsize.c fixes the issue.

Thanks for the hint!  Look for 3.2.5-8 soon, once I also figure out how to fix 
the regression in 'printf %08x 0x90000000' (basically, bash's replacement 
asprintf is broken, although it avoids the coredump caused by asprintf in any 
cygwin earlier than the current snapshot.  Have I ever mentioned on this list 
that it really bugs me that Chet acknowledges bug reports, and states that he 
has patched them in his local tree, but since his local tree is not public, I 
end up reproducing his work?  And while I'm at it, I will mention that it would 
be nicer if Chet would use gnulib's replacement asprintf instead of rolling his 
own).  I might also play with the postinstall script to be a little more 
aggressive in performing the /bin/sh upgrade, in case of different ownership 
between /bin/sh vs. /bin/bash.

-- 
Eric Blake
volunteer cygwin bash maintainer



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]