delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/07/12:08:45

X-Spam-Check-By: sourceware.org
Message-ID: <468FBA77.6010703@cygwin.com>
Date: Sat, 07 Jul 2007 12:08:23 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem: Why the file in the mount (as system) directory can't be found?
References: <468fb41d DOT 1abd600a DOT 727d DOT 35fd AT mx DOT google DOT com>
In-Reply-To: <468fb41d.1abd600a.727d.35fd@mx.google.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

<http://cygwin.com/acronyms/#TOFU>.  Reformatted.

Liping Zeng wrote:
>> -----Original Message-----
>> From: Igor Peshansky [mailto:pechtcha <AT> cs <DOT> nyu <DOT> edu] 
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

>> Sent: 2007年7月7日 10:39
>> To: Liping Zeng
>> Cc: cygwin <AT> cygwin <DOT> com
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Ditto.

>> Subject: Re: Problem: Why the file in the mount (as system) directory can't
>> be found?
>> 
>> On Sat, 7 Jul 2007, Liping Zeng wrote:
>> 
>>> I mount D:\tornado to /tornado with following:
>>> 	$ mount -s "D:\tornado" /tornado
>>> When I exectue command in /:
>>>      $ wtxtcl /tornado/host/src/hutils/muntch.tcl with following result
>>>      couldn't read file "host/src/hutils/munch.tcl": no such file or
>> directory
>>> but after I change my work directory to /tornao, and do it again, it work
>>> well.
>>> I don't know why, can anyone help me?
>> 
>> Because most likely wtxtcl is not a Cygwin program, and thus does not
>> understand Cygwin mounts (or Cygwin POSIX paths, for that matter).
>> 	Igor
 > Wtxtcl is not a Cygwin program, but as what I do, the environment are same
 > for both executions. The diffrence is the work directory.
 > In /:
 > $ wtxtcl /tornado/host/src/hutils/muntch.tcl
 >>      couldn't read file "host/src/hutils/munch.tcl": no such file or
 > directory
 > In /tornado
 > $ wtxtcl /tornado/host/src/hutils/muntch.tcl
 > (OK)


The fact that Wtxtcl works fine in one circumstance with Cygwin's POSIX
path is serendipity, not an indication that all such paths should work.
If you wish Wtxtcl to understand Cygwin's POSIX paths, you need to rebuild
from source using Cygwin's gcc or have the author do this for you.  The
"close second" to this option is to use 'cygpath' to convert the POSIX
path into it's Windows equivalent, i.e.:

wtxtcl $(cygpath -wa /tornado/host/src/hutils/muntch.tcl)

Obviously, this has it's limits but should suffice in your case.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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