Menu

#135 diff'ing stdin not possible with 2.8.1

DiffUtils
closed
GnuWin
Binaries (396)
5
2012-07-26
2004-04-05
No

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

Discussion

  • GnuWin

    GnuWin - 2004-04-06

    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.

     
  • GnuWin

    GnuWin - 2004-05-24

    Logged In: YES
    user_id=217802

    This bug has been fixed. A new release is available through
    http://gnuwin32.sourceforge.net/

     
MongoDB Logo MongoDB