Mail Archives: djgpp/2002/02/26/19:35:04
less (version 358) was downloaded from
[http://www.greenwoodsoftware.com/less/less358w.zip], they say it was
compiled with MSVC5.0
hello.exe is a standard C 4-liner:
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("hello world\n");
return EXIT_SUCCESS;
}
and I have compiled it with Borland C++ 5.5.1.
I see the same with ls|more - it works under cmd, but under bash more
does not see any input.
Charles Sandmann (sandmann AT clio DOT rice DOT edu) wrote:
> > It is not possible to pipe the standard output to/from the native
> > win32 console programs under bash (version 2.04.7(1)-release). For
> > example, ls|less ; hello.exe|wc ; hello.exe|less would not work,
> > if ls, wc are DJGPP programs and less, hello.exe are native win32
> > applications.
> I would need to know more about the less and hello "native win32"
> applications. I also can't reproduce anything like this quickly under
> Windows 2000 so maybe it's something broken only in Windows XP?
> Do you see the same problem with ls | more ? (ls is the djgpp image,
> more is a built in win2k more.com image - but is actually a PE executable).
> If this works it makes me suspicious of how the "less" image you have
> is handling the pipe.
- Raw text -