#812 msys appending Win32 path to hyphen

Known_bugs
closed-fixed
Cesar Strauss
MSYS (75)
2011-03-22
2005-08-01
Larry
No

Originally reported by John Vandenberg on 4:29:36 am
2005-07-30 ---
Including a hyphen as a parameter to a mingw binary
will result in the msys root directory is being appended
to a hyphen, as its Win32 path. i.e.

$ /bin/mingw_echo.exe aaaaaaaaa/xxxxxxxx/ -
arg[1] = aaaaaaaaa/xxxxxxxx/
arg[2] = -D:/GNU/msys

... one more or less character in the first argument does
not generate the error. Only occurs in MSYS window,
and not in DOS window.

Demonstration code follows:
[snip]
#include <stdio.h>
int main(int argc, char **argv)
{
int i;
for (i = 1; i < argc; i++) printf("arg[%d] = %s\n", i, argv[i]);
}
[/snip]

Earnie says he can reproduce it.

Larry B.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2005-08-02

    • milestone: 258437 --> Known_bugs
    • priority: 5 --> 8
     
  • Cesar Strauss
    Cesar Strauss
    2010-01-02

    • assigned_to: earnie --> cstrauss
     
  • Martin Panter
    Martin Panter
    2010-02-04

    I installed msysCORE-1.0.13-2-msys-1.0.13-bin.tar.lzma and the problem is fixed. Hooray!

    $ bash -c "cmd.exe //c echo eighteen-char-word/ -"
    eighteen-char-word/ -

    Thanks

     
  • Cesar Strauss
    Cesar Strauss
    2011-03-22

    • status: open --> closed-fixed