X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: How to write directory address under Cygwin?
Date:  Mon, 08 Oct 2007 01:24:41 -0500
Lines: 39
Message-ID: <fecifj$5jf$1@sea.gmane.org>
References:  <7.0.1.0.2.20071008145536.0248a870@eye.usyd.edu.au>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <7.0.1.0.2.20071008145536.0248a870@eye.usyd.edu.au>
OpenPGP: url=hkp://wwwkeys.pgp.net
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Peter Hains wrote:

> I know this quite probably a very basic question, so basic in fact, I
> haven't been able to find any help! I have Cygwin up and running on my
> PC and I am trying to use a UNIX program under Cygwin. The program
> requires a parameter file telling it where to find all the files it has
> to work on. This file can be found in the
> "C:\cygwin\home\PHains\SuperHirn\make" directory on my hard drive. My
> problem is getting the UNIX software to understand where the parameter
> file can be found.
>=20
> I've tried the Windows nomenclature as outlined above and what I think
> is the Cygwin version;
>=20
> /home/PHains/SuperHirn/make

This last one is the correct way to specify a path.

> and various other permutations. So far I have had no joy and the program
> keeps on telling me the file cannot be found at "whatever_I_entered."

Are you sure you need the directory path not the file path?

> Can somebody please tell me what the correct syntax would be in this case=
??

Other equivalent ways to write it depend on the shell, since bash is the de=
fault
you can also write: ~/SuperHirn/make; or if you are in that directory the j=
ust
write: .

You can test if the directory exist, for instance in a script but also in a
terminal with: [ -d ~/SuperHirn/make ] && echo "Yes, directory exist" .
--=20
Ren=E9 Berber


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

