X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: How to write directory address under Cygwin? Date: Mon, 08 Oct 2007 01:24:41 -0500 Lines: 39 Message-ID: References: <7 DOT 0 DOT 1 DOT 0 DOT 2 DOT 20071008145536 DOT 0248a870 AT eye DOT usyd DOT edu DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/