X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,FB_WORD1_END_DOLLAR,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20100310092536.GS6505@calimero.vinschen.de> References: <720660 DOT 16774 DOT qm AT web88302 DOT mail DOT re4 DOT yahoo DOT com> <20100310092536 DOT GS6505 AT calimero DOT vinschen DOT de> Date: Wed, 10 Mar 2010 11:03:37 +0100 Message-ID: Subject: Re: allow executing a path in backslash notation From: Ilya Beylin To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com The problem is that DOS paths are treated differently, even within the same program. Take for instance, bash: $ builtin test -x "$WINDIR\system32\cmd.exe" && echo ok yes $ builtin exec "$WINDIR\system32\cmd.exe" /C echo ok -bash: exec: C:\WINDOWS\system32\cmd.exe: not found That makes a lot of headache both for users and for programmers who have to remember about all such special cases Cheers Ilya On 10 March 2010 10:25, Corinna Vinschen wrote: > On Mar =C2=A09 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. =C2=A0make.exe i= s 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. =C2=A0Executing a file in DOS > notation is already possible: > > =C2=A0bash$ cat << EOF > exec.c > =C2=A0#include > > =C2=A0int > =C2=A0main (int argc, char **argv) > =C2=A0{ > =C2=A0 =C2=A0char *args[] =3D { argv[1], "abc", 0}; > =C2=A0 =C2=A0execv (argv[1], args); > =C2=A0 =C2=A0return 1; > =C2=A0} > =C2=A0EOF > =C2=A0bash$ gcc -o exec exec.c > =C2=A0bash$ ./exec /bin/echo > =C2=A0abc > =C2=A0bash$ ./exec C:\\cygwin\\bin\\echo > =C2=A0abc > > > Corinna > > -- > Corinna Vinschen =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Please, send mails regarding Cygwin to > Cygwin Project Co-Leader =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cygwin AT cygw= in DOT com > Red Hat > > -- > Problem reports: =C2=A0 =C2=A0 =C2=A0 http://cygwin.com/problems.html > FAQ: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http:= //cygwin.com/faq/ > Documentation: =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://cygwin.com/docs.html > Unsubscribe info: =C2=A0 =C2=A0 =C2=A0http://cygwin.com/ml/#unsubscribe-s= imple > > -- 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