www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/02/20:39:20

From: Jerzy DOT Witkowski AT ii DOT uni DOT wroc DOT pl (Jerzy Witkowski)
Newsgroups: comp.os.msdos.djgpp
Subject: Bug in bash.exe - inline input data
Date: 02 Dec 1996 12:06:09 +0100
Organization: University of Wroclaw
Lines: 42
Sender: jwi AT dadzbog DOT ii DOT uni DOT wroc DOT pl
Message-ID: <x6ral9w6hq.fsf@dadzbog.ii.uni.wroc.pl>
NNTP-Posting-Host: dadzbog.ii.uni.wroc.pl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have found a problem in bash.exe.  If inline input data are
longer than 512 bytes then reading program has trouble with
opening stdin.  Here is an example.

============================== command line
bash in_file
============================== in_file
cat << end_of_file >out_file
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
This inline input data are longer than 512 bytes.
end_of_file
============================== result from `cat' (non-DJGPP)
c:/lib/cat.exe: -: Bad file number
============================== result from DJGPP `awk'
awk: cmd. line:2: fatal: error reading input file `stdin': 
Permission denied (EACCES)
==============================

BTW, on my computer normal PC arrow keys didn't work in bash (it
seems every one of them generates `C-@' only).  Is this standard
behavior, or am I missing something?  I work with DJGPP 2.0 and
NDOS.COM as normal shell.

TIA,
Jerzy Witkowski
-- 
Jerzy Witkowski     <Jerzy DOT Witkowski AT ii DOT uni DOT wroc DOT pl>          o       o

University of Wroclaw, Institute of Computer Science         /| |   |/|
Przesmyckiego 20, PL-51151 Wroclaw                            |/|   | |
room: 11, phone: 0048 71 247360                              /| |/^\| |
phone/fax office secretary: 0048 71 251271                 <__|

- Raw text -


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