[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [jed-users] UPDATE Jed for Win32



From: "John E. Davis" <davis@xxxxxxxxxxxxx>

Jeff Wojtkiewicz <jwojtkie@xxxxxxxxxxx> wrote:
>I've been looking at the problems WJED 99.7 is having with shell commands in 
>win32.  I found out my version was not running the shell commands at all 
>(e.g dir>out.txt never made an out.txt file.) and to top it off WJED locked 
>up every time.   I looked at the shell.sl script and found this:
>"(%s) 2>&1 < /dev/null",
>I had little idea what anything did outside of the %s and the ()'s are a 
>mystery to me so out of ignorance i changed the line to:
>"%s"

Ok, I will modify shell.sl to fix this.

>Now i tried to run shell commands (dir>>out.txt) and they worked but wjed 
>still locked up.  So I followed the code and found that in ledit.c the 
>program calls insert_file_pointer() and then from here calls vgets() and 
>then it never comes back from there.  I think it is getting stuck on the 
>read() in vgets() for some reason.

What compiler are you using?  Basically, jed calls popen to run the
command.  This is the main reason that `2>&1' is used on Unix: to
redirect stderr to stdout so that error messages also get included in
the file.

I suspect that `popen' is not working properly.  If using the Borland
or MSC compilers, `popen' is defined in win32.c and is implemented via
win32 functions such as `CreatePipe' and `CreateProcess'.

Does win32 support some way of tracing system calls analogous to
`strace' or `truss' on Unix systems?

Thanks,
--John

--------------------------- ONElist Sponsor ----------------------------

How has ONElist changed your life?
Share your story with us at http://www.onelist.com

------------------------------------------------------------------------
***** http://www.pub.ro/~vang/jed/