This is the mail archive of the cygwin@cygwin.com 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]

readline woes


Hi,

in my personal struggle with Cygwin DLLs I came across the following
problem:

On a freshly updated box the fileman example of the readline package
works differently if linked statically or dynamically to
libreadline. fileman defines its own completer function, so readline
will try to complete a command name for the first item on the command
line, and it will try to complete filenames for all subsequent items.

If I link statically, this works as expected. If I link dynamically,
the filename completion still works, but it does no longer try to
complete a command for the first item.

I do not see this problem on a box which is still using cygwin1.dll
version 1.1.7 (and no other packages updated since then). The only
apparent difference is that fileman does not compile out of the box
with the updated tools. The variables rl_readline_name and
rl_attempted_completion_function need to be defined as global
variables in fileman.c to get it link properly. Is this the wrong fix?

It's not that I badly need fileman, but I use similar code in my own
programs, and fileman is a fairly simple testcase for this problem.

Thanks for any input

Markus

-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus.Hoenicka@uth.tmc.edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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