#1963 MSYS needs to find "$COMSPEC" binary.

MSYS2
assigned
Alexx83
None
Bug
none
Unknown
False
2014-03-04
2013-04-26
Earnie Boyd
No

MSYS needs to support the following scripts.

$ cat /bin/cmd

1
2
3
4
5
6
7
8
#!/bin/sh
# Copyright (C) 2002, Earnie Boyd
#   mailto:earnie@users.sf.net
# This file is part of Minimal SYStem.
#   http://www.mingw.org/msys.shtml
# File: cmd

"$COMSPEC" "$@"

$ cat /bin/start

1
2
3
4
5
6
7
8
#!/bin/sh
# Copyright (C) 2002, Earnie Boyd
#   mailto:earnie@users.sf.net
# This file is part of Minimal SYStem.
#   http://www.mingw.org/msys.shtml
# File: start

cmd //c start "$@"

The current result of
$ start /msys.bat MSYS

cygwin warning:
  MS-DOS style path detected: /usr/local/bin/C:\Windows\system32\cmd.exe
  Preferred POSIX equivalent is: /usr/local/bin/C:/Windows/system32/cmd.exe
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
/usr/bin/cmd: line 2: C:\Windows\system32\cmd.exe: command not found
  • /usr/local/bin should not have been prefixed to C:\Windows\system32\cmd.exe.
  • MSYS2 needs to be able to operate on \ path delimiters.
  • See [#1962].
  • Paths to http://cygwin.com need to be modified to use http://mingw.org/wiki or removed.

Related

Issues: #1962

Discussion

  • Alexx83
    Alexx83
    2013-05-14

    • status: unread --> assigned