From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13207 invoked by alias); 26 Jun 2012 22:19:14 -0000 Received: (qmail 13198 invoked by uid 22791); 26 Jun 2012 22:19:14 -0000 X-SWARE-Spam-Status: No, hits=4.0 required=5.0 tests=AWL,BAYES_50,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from vms173021pub.verizon.net (HELO vms173021pub.verizon.net) (206.46.173.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Jun 2012 22:18:49 +0000 Received: from [192.168.1.231] ([unknown] [108.7.54.123]) by vms173021.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M6800K65WN8YZGN@vms173021.mailsrvcs.net> for cygwin@cygwin.com; Tue, 26 Jun 2012 17:18:49 -0500 (CDT) Message-id: <4FEA3545.5030507@cygwin.com> Date: Tue, 26 Jun 2012 22:19:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-version: 1.0 To: cygwin@cygwin.com Subject: Re: Directory structuring References: <34075389.post@talk.nabble.com> In-reply-to: <34075389.post@talk.nabble.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00495.txt.bz2 On 6/26/2012 6:09 PM, PaulAThompson wrote: > > I am very confused about the correct manner of defining directory paths under > cygwin, perl, and bash. I cannot determine the correct manner. Using the > cygwin window, I navigate to locations using > > cd /cygdrive/c/subdir > > Using a bash shell to run a perl process under the shell and passing in a > directory, I must use a windows-style specification with *nix forward > slashes If you're using Cygwin's Perl, then you don't need to worry about windows-style paths. If you must, for some reason, use the Windows-native Perl, then check out 'man cygpath'. It will handle the file path conversions for you so you can stick with POSIX paths when you type. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple