This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

CRLF question (yeah, again :-p)


Running into a small issue with CR LF expansion again and I can't quite
figure out if this is expected behaviour or not.

We're using a clean install of Cygwin 1.7 on NT 4.0 SP6a, all mounts are
text mode, all mounts on NTFS volumes.

In a makefile I do

	cmd /c "dir /ad /b" | sort >foo

...and the lines end up with extra CR characters appended (CR CR LF at the
end of the lines)

Changing the command line to:

	cmd /c "dir /ad /b" >foo1
	sort foo1 >foo

...works fine.

I verified that sort.exe is the Cygwin version and not the NT one.

Is it to be expected that piping the output of a Win32 app to a Cygwin app
might/will result in end-of-line character confusion? Or should this work
and I need to look at sort to find out what's happening?

Thanks in advance,

  Dan




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]