compiling ncurses (WAS Re: less, misbehaving)

Charles Wilson cwilson@ee.gatech.edu
Wed Oct 7 04:25:00 GMT 1998


Geoffrey Noer wrote:

> I'm seeing this problem as well with my latest pre-b20 build.  If
> anyone knows the solution, please let me know.  I would like to
> include ncurses/less in b20.
>

Larry Hall said: "Someone recently added an option
for bash of the form "@<file>" where <file> is the name of a file.  This
causes problems for a sed script that uses '@' as field separators."

He's right - "@" is the problem, but you can't use "/" as the separator in the
offending sed command, because the search/replace strings are pathnames and might
contain "/". I applied the attached patch and everything compiled fine. The patch
modifies line 5917 only, and changes some of the @'s in that line to %'s.

-               sed -e "s@\@LIBS_TO_MAKE\@@$cf_libs_to_make@" \
+               sed -e "s%\@LIBS_TO_MAKE\@%$cf_libs_to_make%" \

I ran the test programs, and it seemed okay when I ran bash -login from an NT
command window. However, in an rxvt window, the test programs ran without
crashing, but had minor display defects. I dunno - it's probably my font / env
var settings.

I haven't tried to build a new "less" against this ncurses, but I think consensus
is that my original "less misbehaving" problem was a bash version thing, and not
an ncurses thing.

--Chuck



More information about the Cygwin mailing list