X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: juhas AT blue DOT seas DOT upenn DOT edu (PAVOL JUHAS) Newsgroups: comp.os.msdos.djgpp Subject: Re: Windows XP pipe problems Date: 26 Feb 2002 23:26:50 GMT Organization: University of Pennsylvania Lines: 32 Message-ID: References: <3c7c0a67 DOT sandmann AT clio DOT rice DOT edu> NNTP-Posting-Host: blue.seas.upenn.edu X-Newsreader: TIN [version 1.2 PL2-upenn1.3] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 #include 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.