From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: Reza Habib Cc: Cygwin Mailing List Subject: Re: paths under ming Date: Sun, 11 Jul 1999 12:32:00 -0000 Message-id: References: <000101becb14$e0ff1330$cd8b94d1@newton> X-SW-Source: 1999-07/msg00225.html On Sat, 10 Jul 1999, Reza Habib wrote: > Hello. I've written a console program with mingw32 which takes command line > parameters. Some of these parameters consist of file names (including > paths). Running the program under bash works fine, however, running it from > the windows console, it can't seem to find the files the parameters refer > to. I think this has to do with how the directory and filenames are > specified. I've tried both windows style backslashes '\' and unix style > forward slashes '/', as well as all caps, all lower case, and matching > cases, and none of this seems to work under the dos console. Can someone > tell me how programs compiled with mingw32 expect filenames passed from the > command line. Thanks. > Depends on your the shell you're running under. If you're running under bash, it "globs" your command line and modifies it before passing it on to the program; if you're running under CMD/COMMAND, then the globbing is done in the startup code. Unless you provide testcase, it's hard to tell what may be wrong. There is also the debugger, so please use it. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: Reza Habib Cc: Cygwin Mailing List Subject: Re: paths under ming Date: Sat, 31 Jul 1999 18:34:00 -0000 Message-ID: References: <000101becb14$e0ff1330$cd8b94d1@newton> X-SW-Source: 1999-07n/msg00225.html Message-ID: <19990731183400.-bFTRLpYtUFH5oEWfB4vq9K4py6OyoGnXA5Le2PyXYM@z> On Sat, 10 Jul 1999, Reza Habib wrote: > Hello. I've written a console program with mingw32 which takes command line > parameters. Some of these parameters consist of file names (including > paths). Running the program under bash works fine, however, running it from > the windows console, it can't seem to find the files the parameters refer > to. I think this has to do with how the directory and filenames are > specified. I've tried both windows style backslashes '\' and unix style > forward slashes '/', as well as all caps, all lower case, and matching > cases, and none of this seems to work under the dos console. Can someone > tell me how programs compiled with mingw32 expect filenames passed from the > command line. Thanks. > Depends on your the shell you're running under. If you're running under bash, it "globs" your command line and modifies it before passing it on to the program; if you're running under CMD/COMMAND, then the globbing is done in the startup code. Unless you provide testcase, it's hard to tell what may be wrong. There is also the debugger, so please use it. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com