delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/19/16:57:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: David Abrahams <dave AT boost-consulting DOT com>
Subject: Strange Cygwin issu
Date: Mon, 19 May 2003 16:57:07 -0400
Lines: 215
Message-ID: <u1xyuirj0.fsf@boost-consulting.com>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)
Cancel-Lock: sha1:QsyT5gIU/sSpZkOdOb1hNMZLcQY=


I'm seeing some strange assymetry in how a windows-native tool treats
arguments passed from Cygwin.  The enclosed (short) digest tells all.
Any ideas?

Thanks very much in advance...


--=-=-=
Content-Type: multipart/digest; boundary="==-=-="

--==-=-=

Subject: Topics

Topics:
   Strange Cygwin issue
   Re: Strange Cygwin issue
   Re: Strange Cygwin issue
   Re: Strange Cygwin issue


--==-=-=

Date: Mon, 19 May 2003 04:39:49 -0400
From: David Abrahams <dave AT boost-consulting DOT com>
To: Jason Tishler <jason AT tishler DOT net>
Subject: Strange Cygwin issue
Message-ID: <ullx3l48a DOT fsf AT boost-consulting DOT com>
MIME-Version: 1.0


Hi Jason,

I thought you might be able to help with this.  I'm having a strange
problem invoking the "TLIB" tool (from Borland's free compiler package
http://www.borland.com/products/downloads/download_cbuilder.html) from
Cygwin.

When you pass paths to this thing, they need to have a particular
form.  TLIB seems to want to make everything into an option, so it
interprets forward slashes and dashes as beginning an option, no
matter where they appear... unless they're quoted.  Actually, It
always takes forward slashes as option characters, but dashes have to
be (double) quoted.  You can download this stuff and try for yourself
if curious.

Anyway, if I have to pass a path like "c:\foo-bar\baz", it works from
the WinXP command-prompt, but not from the Cygwin command-prompt.  The
actual use case has the command being invoked by execvp, but the bash
shell seems to be a fine way to experiment with it.  the weird thing
is, I built a little windows app win MSVC to print out all of its
argv, and if I invoke it like this:

      args "c:\foo-bar\baz"

from either windows or cygwin, I see the same thing:

     c:\foo-bar\baz

I can't imagine what would make TLIB see something different, except
*perhaps* that it's a DOS program and not a Win32 program... not that
I have any idea how/why that has an effect.

Can you shed any light on this?

Many thanks in advance,
Dave

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com



--==-=-=

Date: Mon, 19 May 2003 11:05:19 -0400
From: Jason Tishler <jason AT tishler DOT net>
To: David Abrahams <dave AT boost-consulting DOT com>
Subject: Re: Strange Cygwin issue
Message-id: <20030519150518 DOT GA1700 AT tishler DOT net>
References: <ullx3l48a DOT fsf AT boost-consulting DOT com>
MIME-Version: 1.0

Dave,

On Mon, May 19, 2003 at 04:39:49AM -0400, David Abrahams wrote:
> Can you shed any light on this?

Have you tried using double backslashes?

    $ C:\\Cygwin\\bin\\uname.exe
    CYGWIN_NT-5.0

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



--==-=-=

Date: Mon, 19 May 2003 11:16:46 -0400
From: David Abrahams <dave AT boost-consulting DOT com>
To: Jason Tishler <jason AT tishler DOT net>
Subject: Re: Strange Cygwin issue
Message-ID: <uy913j7a9 DOT fsf AT boost-consulting DOT com>
References: <ullx3l48a DOT fsf AT boost-consulting DOT com>
	<20030519150518 DOT GA1700 AT tishler DOT net>
MIME-Version: 1.0

Jason Tishler <jason AT tishler DOT net> writes:

> Dave,
>
> On Mon, May 19, 2003 at 04:39:49AM -0400, David Abrahams wrote:
>> Can you shed any light on this?
>
> Have you tried using double backslashes?
>
>     $ C:\\Cygwin\\bin\\uname.exe
>     CYGWIN_NT-5.0

It still behaves differently in cygwin:

    dave AT penguin /cygdrive/c/boost/tools/build/test
    $ /cygdrive/c/tools/Borland/BCC55/Bin/tlib.exe c:\\tmp\\foo-bar
    TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
    Warning: 'bar' not found in library

than from the NT prompt:

    C:\boost\tools\build\test>c:\tools\Borland\BCC55\Bin\tlib.exe "c:\tmp\foo-bar"
    TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation

    C:\boost\tools\build\test>

(note the warning).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com



--==-=-=

Date: Mon, 19 May 2003 12:27:37 -0400
From: Jason Tishler <jason AT tishler DOT net>
To: David Abrahams <dave AT boost-consulting DOT com>
Subject: Re: Strange Cygwin issue
Message-id: <20030519162736 DOT GB1868 AT tishler DOT net>
References: <ullx3l48a DOT fsf AT boost-consulting DOT com>
 <20030519150518 DOT GA1700 AT tishler DOT net> <uy913j7a9 DOT fsf AT boost-consulting DOT com>
MIME-Version: 1.0

Dave,

On Mon, May 19, 2003 at 11:16:46AM -0400, David Abrahams wrote:
> Jason Tishler <jason AT tishler DOT net> writes:
> > On Mon, May 19, 2003 at 04:39:49AM -0400, David Abrahams wrote:
> >> Can you shed any light on this?
> >
> > Have you tried using double backslashes?
> >
> >     $ C:\\Cygwin\\bin\\uname.exe
> >     CYGWIN_NT-5.0
> 
> It still behaves differently in cygwin:
> 
>     dave AT penguin /cygdrive/c/boost/tools/build/test
>     $ /cygdrive/c/tools/Borland/BCC55/Bin/tlib.exe c:\\tmp\\foo-bar
>     TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
>     Warning: 'bar' not found in library
> 
> than from the NT prompt:
> 
>     C:\boost\tools\build\test>c:\tools\Borland\BCC55\Bin\tlib.exe "c:\tmp\foo-bar"
>     TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
> 
>     C:\boost\tools\build\test>
> 
> (note the warning).

Sorry, but I don't know how to help you more without some serious
debugging.  Please take this to the Cygwin mailing list.  This is the
more expeditious (and appropriate) way to request help.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



--==-=-=--



-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


--=-=-=
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--=-=-=--

- Raw text -


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