Date: Sun, 22 Dec 1996 09:05:44 +0200 (IST) From: Eli Zaretskii To: Weiqi Gao cc: djgpp AT delorie DOT com Subject: Re: security hole in "cat" In-Reply-To: <01bbec9b$9b112a20$0f0171a5@weiqigao> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 18 Dec 1996, Weiqi Gao wrote: > However, I had the following peculiar experience with bash and cat in a DOS > box under Windows 3.1: > =========================================================== > weiqi: ~$ cat << EOF > >EOF > d:/USR/BIN/cat.exe: -: Bad file descriptor (EBADF) > =========================================================== Is that cat.exe from the DJGPP port of Fileutils 3.13? If so, the above works for me on MSDOS. Can you try it on DOS and see if it works? If not, maybe you have an old cat.exe? If it does work on MSDOS, but not on Windows 95, it probably is Windows-specific. Also, be sure to upgrade to the latest bash.exe.