delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44419C24.37C47161@dessent.net> |
Date: | Sat, 15 Apr 2006 18:21:40 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Not sure what the problem is... |
References: | <20060416011148 DOT 24665 DOT qmail AT web38104 DOT mail DOT mud DOT yahoo DOT com> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
The One wrote: > Well, I'm runing the program on computer that does not > have cygwin installed. I just put a copy of the > cygwin1.dll in the windows path. How do you expect this to work if you don't have Cygwin installed? At the very least you'll need /bin/sh and /bin/ls, since system("foo") just calls '/bin/sh -c "foo"'. Have you checked the return value of system()? Always check return values. > I couldn't get it to recognize /cygdrive/c/mydir or > /c/mydir since cygwin is not installed on the > computer. I tried adding the mount v2 info in the > registry but that didn't work. I would appreciate > very much if you can help me to get it to recognize > posix path. /cygdrive is the default, so it shouldn't matter that there is no mount table. (By the way, always use mount and umount instead of manipulating the registry directly.) I don't think posix vs. win32 paths is actually the problem here, and "c:/mydir" ought to work for what you're trying to do... it's just not a great habit to get into. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |