Graham, David (IndSys, ES) wrote: > Also, I often use sort (textutils) 2.0.21 on the windows 2000 > platform, and was today surprised by this behavior:
You are probably using the Cygwin Toolset then. > It works the way I expect if I use this command line: > sort fil > fil2 > The output file (fil2) has each line terminated with 0D 0A (= cr lf ) > But if I use this command line: > sort d:\fil > fil2 > The output file (fil2) has each line terminated with 0D 0D 0A (= cr cr lf ) Thank you for reporting that problem. Unfortuntely I am going to have to redirect you. It looks to me like the program is getting put into binary mode on input and text mode on output and the mismatch is creating one more ln->cr-ln conversion than it should. Needing a text mode conversion is unique to ms systems and is not a native part of sort. And it is a hard problem. I am not sure it can ever be completely solved. Solved without switching operating systems, that is. :-) The hard work the Cygwin team has put in to developing the GNU Project on Windows is greatly admired. However the GNU team generally uses GNU systems and do not have access to Cygwin systems or MS-Windows systems which means that most of us can't help you. It would be most appreciated if you would make your bug report directly to the Cygwin folks. They are the experts and best suited to handle your problem. Cygwin Home Page http://cygwin.com/ Cygwin FAQ. http://cygwin.com/faq/ Cygwin Bug Report Guidelines. This is a good reference for general bug reporting. http://cygwin.com/bugs.html Bob _______________________________________________ Bug-textutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-textutils