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
I believe there may be a bug with
/bin/start
; the invocation ofcmd /c
should accept a single argument which is the entire command string.So the implementation:
Should be:
While
start notepad
works with both implementations, passing additional arguments tostart
such as/wait
only works with the second implemetation. Specifically,The current implementation returns a Windows dialog message stating that the file
C:/MingGW/msys/1.0/wait
cannot be found.The scripts are already available in MinGW so I'm not sure what this issue is tracking, but since it's open it seemed a good place to start. I can file a separate issue if you prefer or make a pull request if you could point me to the source.