diff'ing stdin not possible with 2.8.1
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
When I give '-' as one of the filenames to diff, it
reports "-: Invalid argument". For example:
[c:]echo foobar |& diff - test
C:\GnuWin32\bin\diff.exe: -: Invalid argument
Oddly enough, the behaviour (and the program name!)
changes when there isn't any data on stdin:
[c:]diff - test
diff: -: Bad file descriptor
Logged In: YES
user_id=217802
The first bug can be fixed; this will be done in a next release.
The second one, with direct input from the console, is much
harder to fix, since MS-Windows waits too long for input when
reading directly from the console screen. It would require a
new implementation of getc, depending upon whether it does
or does not read from the screen.
Logged In: YES
user_id=217802
This bug has been fixed. A new release is available through
http://gnuwin32.sourceforge.net/