Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: "Tom M. Yeh" <tomyeh@infoshock.com>
To: "Cygwin" <cygwin@sourceware.cygnus.com>
Subject: Running a NT program from cygwin
Date: Thu, 29 Jun 2000 20:15:28 +0800
Message-ID: <NCBBLBHKHIHIHIAOPHIIEEMICDAA.tomyeh@infoshock.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

I have a NT program, called e.exe, which is used to edit a file. When I
invoked it with a filename described by a path relative to the current
directory, it works fine. However, if I specified a path starting from the
root directory, it interprets into a wrong path. For example,

Current directory: /usr
Invoke: e include/stdio.h  -> OK
Invoke: e /usr/include/stdio.h -> FAIL, c:\cygwin\usr\usr\include\stdio.h is
searched instead of c:\cygwin\usr\include\stdio.h

In other words, it looks like no matter what path I specified, it is always
prefixed with the current directory (and discarding / if it starts with /).

Regards & Thanks,
Tom


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

