public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* paths under ming
@ 1999-07-10 13:40 Reza Habib
  1999-07-11 12:32 ` Mumit Khan
  1999-07-31 18:34 ` Reza Habib
  0 siblings, 2 replies; 6+ messages in thread
From: Reza Habib @ 1999-07-10 13:40 UTC (permalink / raw)
  To: Cygwin Mailing List

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.

Reza


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: paths under ming
  1999-07-10 13:40 paths under ming Reza Habib
@ 1999-07-11 12:32 ` Mumit Khan
  1999-07-31 18:34   ` Mumit Khan
  1999-07-31 18:34 ` Reza Habib
  1 sibling, 1 reply; 6+ messages in thread
From: Mumit Khan @ 1999-07-11 12:32 UTC (permalink / raw)
  To: Reza Habib; +Cc: Cygwin Mailing List

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: paths under ming
  1999-07-11 12:32 ` Mumit Khan
@ 1999-07-31 18:34   ` Mumit Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Reza Habib; +Cc: Cygwin Mailing List

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* paths under ming
  1999-07-10 13:40 paths under ming Reza Habib
  1999-07-11 12:32 ` Mumit Khan
@ 1999-07-31 18:34 ` Reza Habib
  1 sibling, 0 replies; 6+ messages in thread
From: Reza Habib @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Cygwin Mailing List

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.

Reza


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: paths under ming
  1999-07-11 15:47 Earnie Boyd
@ 1999-07-31 18:34 ` Earnie Boyd
  0 siblings, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Reza Habib, Cygwin Mailing List

Your mingw32 program will not map the cygwin mounted directory table to the
physical directories.  Is this what you're trying to do?  It also won't
properly follow the logical links to the physical paths.

Earnie.

--- Reza Habib <reza@psych.utoronto.ca> 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.
> 
> Reza
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 

===
Earnie Boyd < mailto:earnie_boyd@yahoo.com >

Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >

(If you respond to the list, then please don't cc me)
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: paths under ming
@ 1999-07-11 15:47 Earnie Boyd
  1999-07-31 18:34 ` Earnie Boyd
  0 siblings, 1 reply; 6+ messages in thread
From: Earnie Boyd @ 1999-07-11 15:47 UTC (permalink / raw)
  To: Reza Habib, Cygwin Mailing List

Your mingw32 program will not map the cygwin mounted directory table to the
physical directories.  Is this what you're trying to do?  It also won't
properly follow the logical links to the physical paths.

Earnie.

--- Reza Habib <reza@psych.utoronto.ca> 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.
> 
> Reza
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 

===
Earnie Boyd < mailto:earnie_boyd@yahoo.com >

Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >

(If you respond to the list, then please don't cc me)
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-07-31 18:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-10 13:40 paths under ming Reza Habib
1999-07-11 12:32 ` Mumit Khan
1999-07-31 18:34   ` Mumit Khan
1999-07-31 18:34 ` Reza Habib
1999-07-11 15:47 Earnie Boyd
1999-07-31 18:34 ` Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).