delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/11/19/22:30:07

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.58.237.102 with SMTP id vb6mr11321366vec.31.1384917153795;
Tue, 19 Nov 2013 19:12:33 -0800 (PST)
X-Received: by 10.49.5.167 with SMTP id t7mr417919qet.7.1384917153773; Tue, 19
Nov 2013 19:12:33 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Tue, 19 Nov 2013 19:12:33 -0800 (PST)
In-Reply-To: <528A4CED.8030200@codespunk.com>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
NNTP-Posting-Host: 65.13.115.246
References: <528996CE DOT 9020803 AT codespunk DOT com> <528A4CED DOT 8030200 AT codespunk DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3c86248-7e22-4106-8b24-2236027e48b1@googlegroups.com>
Subject: Re: Working with bash and cat
From: rugxulo AT gmail DOT com
Injection-Date: Wed, 20 Nov 2013 03:12:33 +0000
X-Received-Bytes: 3168
X-Received-Body-CRC: 1557208071
Bytes: 3333
Lines: 53
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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, (sorry for bad formatting, blame Google Groups!)

On Monday, November 18, 2013 11:22:53 AM UTC-6, Matt D. wrote:
> Bash pipe doesn't work at all with any of the 2.05 binaries. All of these fail:
> 
> sh.exe
> 
> sh-2.05$ echo 1 | cat
> sh-2.05$ echo 1 | while read a; do echo $a; done
> sh-2.05$ echo 1 | (read a && echo $a)

All of those worked fine for me under DOSEMU + FreeDOS.

(Tue Nov 19, 09:07 PM) /mnt/sda3/c/djgpp/manifest # cat {bsh205*,txt20b}.ver
bsh205bbr3 :  BASH 2.05b DJGPP 2.04 WIP (revison 3)
txt20b Text Utils 2.0 (W2K Test binary file)  

But I was using 2.04 /beta/ versions. I vaguely recall
Juan mentioning that he sometimes had to use 2.04's
cat.exe due to some obscure bug, but I don't know the
details.

http://na.mirror.garr.it/mirrors/djgpp/beta/v2gnu/bsh205bbr3.zip
http://na.mirror.garr.it/mirrors/djgpp/beta/v2gnu/txt20b.zip

> I am using DJGPP with MSDOS 7.1. Is this operating system not supported?

It "should" work, but there is no wide consensus anymore
about which OS is best to use with DJGPP. With 2.03p2,
it was claimed to have been well-tested in "all
environments", but 2.04 was only mostly tested (AFAIK)
under WinXP. Anyways, there aren't enough volunteers
(testers, developers, release managers) to do much
else these days.

And of course it's much harder to find MS-DOS by
default(except via bootable floppy image via Explorer
via DISKCOPY.DLL). Thus I prefer FreeDOS (and don't
have XP anymore, and newer Windows are useless).

> On 11/17/2013 11:25 PM, Matt D. wrote:
> 
> > I just downloaded bsh204br3.zip from current but when executing the
> 
> > following script I get an error "Bad file descriptor (EBADF)":
> 
> >
> > echo 1 | cat
> >
> > I tried downloading the latest beta bsh205bbr3.zip but then whenever I
> > pipe something into cat, nothing gets output to the screen.
> 
> > Is there a more recent version of bash I can download which fixes these
> > problems?

- Raw text -


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