www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/03/03/05:45:21

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.182.24.5 with SMTP id q5mr13460308obf.23.1393842654262;
Mon, 03 Mar 2014 02:30:54 -0800 (PST)
X-Received: by 10.50.93.37 with SMTP id cr5mr256597igb.8.1393842654101; Mon,
03 Mar 2014 02:30:54 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 3 Mar 2014 02:30:53 -0800 (PST)
In-Reply-To: <a6e46859-c0db-45d2-96c8-b54b07e443f6@googlegroups.com>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.85.87.59; posting-account=bSnlxgoAAAC0EF1g5Pa2aEAPYq9FH19q
NNTP-Posting-Host: 69.85.87.59
References: <528996CE DOT 9020803 AT codespunk DOT com> <528A4CED DOT 8030200 AT codespunk DOT com>
<f3c86248-7e22-4106-8b24-2236027e48b1 AT googlegroups DOT com> <f6cf9ddf-cbe6-4b8f-a188-ceec82c9b7d1 AT googlegroups DOT com>
<a6e46859-c0db-45d2-96c8-b54b07e443f6 AT googlegroups DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a2145c9a-c5c5-4b7f-a7b4-208dfdf534a4@googlegroups.com>
Subject: Re: Working with bash and cat
From: palxex <palxex AT gmail DOT com>
Injection-Date: Mon, 03 Mar 2014 10:30:54 +0000
Bytes: 3828
Lines: 56
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s23Aj4oY000952
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi,

On Monday, March 3, 2014 2:36:07 PM UTC+8, rug DOT  DOT  DOT  AT gmail DOT com wrote:
> That sounds good in theory, but things aren't quite that clear cut.
> 
> Specifically, what kernel version and what memory managers are loaded?
kernel 2041. memory manager - I've tested all situation, includes XMGR, JEMMEX, EMM386 and none of them - the problem is all the same.
> 
> Is this on native hardware or inside a VM?
> 
Native Hardware. A 1st-generation i7 CPU with 8G DDR3 - other hardware detail can be find by google Quanta TW9 barebone.
> 
> Is %DJGPP% set? Is %TMPDIR% overriden? (A specific example cmdline or
> 
> two would be nice to test and compare here.)
> 
Yes, %DJGPP% set. %TMPDIR% not overriden( I'm running DJGPP programs in my FAT32 partition ). In fact I just use the official djgpp.env, no any modification.
For tests...let me make some. all following is exactly what happen in my laptop, except the comments that leads with //:

$echo x > testfile
$grep x testfile
x  //so grep's function is well, as well as stdout redirection 
$cat testfile |grep x  
$  //NOTHING output
$less x
x
testfile (END) // so less also works
//press q exit - so less works well
$cat x | less
(END)//NOTHING here but we can still press q to exit.

> Anyways, latest in /current/ is [sic] bsh204br3.zip and /beta/ is bsh205bbr3.zip . I assume you're actually testing 2.04r3 here.
> 
Let me describe my test environment. I've test it 3 times from ground up.
1) download everything I needs in /beta(include bsh205bbr3.zip), and unzip them in /DJGPP, set enviroment variants, etc.
2) test the above commands, found the pipe not work. 
3) download the /current/ bsh204br3.zip and unzip it in the /DJGPP folder, run bash and then the above tests, found all pipe functions well. 
4) renames /DJGPP/bin/bash.exe to /DJGPP/bin/bash204.exe, and unzips bsh205bbr3.zip to /DJGPP again, run bash.exe and the test, find test result was same as step 2.
5) run bash204.exe and then the tests, find the result was same as step 3.

After several try I find a (strange) solution. Don't use the cat.exe from txt20b.zip, instead write a bat(cat->copy %1 con). Then grep through pipe works. So it seems not totally pipe's problem - its the old textutils don't compatible? By the way, I tried the 3 tests you mentioned, in bash204br3 it all gives a "1" output, and in bash205br3 nothing.

Thanks, palxex

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019