Mail Archives: djgpp/1996/12/02/20:39:20
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 -