This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange Cygwin issu


--- Begin Message ---
Topics:
   Strange Cygwin issue
   Re: Strange Cygwin issue
   Re: Strange Cygwin issue
   Re: Strange Cygwin issue


--- End Message ---
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Jason Tishler <jason@tishler.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@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



--- End Message ---
--- Begin Message ---
Dave,

On Mon, May 19, 2003 at 11:16:46AM -0400, David Abrahams wrote:
> Jason Tishler <jason@tishler.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@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



--- End Message ---
--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]