This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: allow executing a path in backslash notation
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 10 Mar 2010 10:25:36 +0100
- Subject: Re: allow executing a path in backslash notation
- References: <720660.16774.qm@web88302.mail.re4.yahoo.com>
- Reply-to: cygwin at cygwin dot com
On Mar 9 13:47, Ilguiz Latypov wrote:
>
> > The bottom line is that if you want to use MS-DOS
> > paths, then use a MinGW or DJGPP version of make.exe. make.exe is not
> > going to be patched.
>
> The patch was to cygwin1.dll, but I am not insisting.
Trouble is, I don't even see the problem. Executing a file in DOS
notation is already possible:
bash$ cat << EOF > exec.c
#include <unistd.h>
int
main (int argc, char **argv)
{
char *args[] = { argv[1], "abc", 0};
execv (argv[1], args);
return 1;
}
EOF
bash$ gcc -o exec exec.c
bash$ ./exec /bin/echo
abc
bash$ ./exec C:\\cygwin\\bin\\echo
abc
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple