delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/11/15:34:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: mercury.xraylith.wisc.edu: khan owned process doing -bs
Date: Sun, 11 Jul 1999 14:32:28 -0500 (CDT)
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>
To: Reza Habib <reza AT psych DOT utoronto DOT ca>
cc: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: paths under ming
In-Reply-To: <000101becb14$e0ff1330$cd8b94d1@newton>
Message-ID: <Pine.LNX.3.96.990711143052.29235B-100000@mercury.xraylith.wisc.edu>
MIME-Version: 1.0

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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019