On Thu, Dec 20, 2007 at 11:42:51AM +1100, Daniel Noll wrote: >On Thursday 20 December 2007 11:36:08 Matt Wozniski wrote: >> On Dec 19, 2007 7:09 PM, Daniel Noll wrote: >> > On Wednesday 19 December 2007 08:18:37 Dave Korn wrote: >> > > > Does Cygwin uses EOF of Windows? >> > > >> > > No, Cygwin uses Ctrl-D for EOF like all POSIX. >> > >> > No, Cygwin uses whatever the user tells it to use during the install. >> >> No, you're confusing EOF with EOL. Line endings can be either Ctrl-M >> Ctrl-J or just Ctrl-J, depending upon your installation choice, but >> end of file is always Ctrl-D, like all of POSIX. > >Ah, you're right. I read it as EOL for some reason. > >But actually the Ctrl-D thing seems to be per-application. I've noticed that >under Cygwin, if I run an MS-DOS application it still expects the DOS-style >EOF terminator. Likewise if I run something like "cat" under cmd.exe, Ctrl-D >works.
If you are running a non-cygwin program then it uses whatever Windows uses. If you are running a *Cygwin program* then it uses whatever Cygwin uses. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/