which.exe crashes on XP

  • Ronald

    Ronald - 2010-07-16

    See screenshot at http://img199.imageshack.us/img199/8641/201007161354.png

    The crash occurs in msvcrt.dll, so I wonder whether there is a compaibility problem. According to the docs, the utils are only dependent on that DLL.

    I tried a few other commands (less.exe, uname.exe), but at least those which I tried, work fine.

  • Lorenzo Monti

    Lorenzo Monti - 2010-09-15

    had same problem here under Windows 2003.
    I downloaded the source, recompiled with MinGW gcc 4.5.0, problem gone.
    I have no explanation, but it works.
    get it at http://www.lorenzomonti.it/which.exe
    cheers - Lorenzo -

  • Ronald

    Ronald - 2010-09-16

    Thank you, this works. However, I found it less useful than expected - this seems to be a design problem in the original 'which'. For example:

    > which.exe xcopy.exe
    > which.exe xcopy
    which.exe: no xcopy in ….

    You have to specify the full filename (including extension). Hence, 'which' can not be used to ask "which program would be executed if I would enter XYZ". It would be gread if which.exe also would take PATHEXT into account, as (for example) Cygwin's which is doing:

    $ which xcopy


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks